Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved NPE Area.Rectangular

Author of MaxiBots
Joined
Dec 3, 2013
Messages
6,868
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
 
Top