mankel200 0 Share Posted August 29, 2022 Hey, is there something wrong with this code since i seem to get an error? I get an nullpointerexception on "if inventory is full" if (Inventory.isFull()) { Walking.walk(TREES.getRandomTile()); sleepUntil(() -> !getLocalPlayer().isMoving(), 20000); sleep(Calculations.random(500, 1200)); Inventory.get("Tinderbox").useOn("logs"); sleepUntil(() -> getLocalPlayer().isMoving(), 20000); sleep(Calculations.random(500, 1200)); } Link to comment Share on other sites More sharing options...
SubCZ 283 Share Posted August 29, 2022 https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it Link to comment Share on other sites More sharing options...
mankel200 0 Author Share Posted August 29, 2022 2 hours ago, SubCZ said: https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it it happens even though i null check it Link to comment Share on other sites More sharing options...
420x69x420 72 Share Posted August 29, 2022 In order to accurately troubleshoot your code, look at the lines of code which the error first occurred on your script in the Console Logs and look for the red text. Link to comment Share on other sites More sharing options...
mankel200 0 Author Share Posted August 30, 2022 9 hours ago, 420x69x420 said: In order to accurately troubleshoot your code, look at the lines of code which the error first occurred on your script in the Console Logs and look for the red text. Pretty sure it was a problem with java or something since it fixed itself lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.