The Hero of Time Posted March 11, 2016 Share Posted March 11, 2016 (edited) this is the code and it gave an null pointer exception BEFORE THIS LINE OF CODE (log) so, you would assume the problem is in getwalking ,right? because it doesnt log attempting to find banker, logical right? well, apparently i didnt null check(i would null check it, only later in scripting because i wanted to fix this first banker was null apparently now comes the real question how the hell did it jump the code and skip log("attempting to find banker") ??? this baffles me EDIT: teamviewed me and experienced the weirdness of this. after i fixed the problem, i ctrl+z 'd all the way back and it was exactly the same, and i couldn't reproduce the problem. it drives me insane lol... Edited March 11, 2016 by The Hero of Time Quote Link to comment Share on other sites More sharing options...
Harry Posted March 11, 2016 Share Posted March 11, 2016 I'm no coder, but shouldn't you have a sleep while it walks itself to the bank? Or am I completely wrong and that's not the issue? Quote Link to comment Share on other sites More sharing options...
The Hero of Time Posted March 11, 2016 Author Share Posted March 11, 2016 I'm no coder, but shouldn't you have a sleep while it walks itself to the bank? Or am I completely wrong and that's not the issue? nope :p Quote Link to comment Share on other sites More sharing options...
Acerd Posted March 12, 2016 Share Posted March 12, 2016 why not use if (!bank.isOpen() { bank.open(); new ConditionalSleep(5000) { public boolean condition() throws InterruptedException { return bank.isOpen(); }.sleep(); } Quote Link to comment Share on other sites More sharing options...