1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved NPE Area.Rectangular

Discussion in 'Developer Support' started by Aidden, Feb 15, 2016.

  1. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    builder = GameObjects.newQuery().names(treeName).actions("Chop down", "Chop").surroundingsReachable().within(treeArea);

    Occurs on: return (tree == null || !tree.isValid()) ? (tree = builder.results().nearest()) : tree;
    The builder is set when the task is created and the area it's using is predefined. It also works fine for the first tree it looks for but when it gets a new tree it throws this exception.

    java.lang.NullPointerException at com.runemate.game.api.hybrid.location.Are - Pastebin.com
    @Cloud

     
  2. Best Answer:
    Post #4 by Cloud, Feb 15, 2016
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    What client version.
     
  4. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    1.0.15 and rs3
     
  5. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Fixed in V1.0.16
     

Share This Page

Loading...