Jump to content

GroundItem#exists() throws NPE


OneLuckyDuck

Recommended Posts

Below is the usage and the error. It doesn't kill the script, but it happens a lot. 

 

Btw, I've replicated this by controlling the validity of the item. It doesn't happen 100%, but it does happen.

 

 

85d4fcc991.png




[ERROR][Bot #1][07/03 12:23:09 AM]: Error in script executor!
java.lang.NullPointerException
	at org.osbot.rs07.api.util.NodeDequeIterator.set(NodeDequeIterator.java:20)
	at org.osbot.rs07.api.Map.contains(Map.java:125)
	at org.osbot.rs07.api.model.GroundItem.exists(GroundItem.java:176)
	at com.polycoding.wizardkiller.tasks.combat.Attacking.checkForLoot(Attacking.java:99)
	at com.polycoding.wizardkiller.tasks.combat.Attacking.execute(Attacking.java:46)
	at WizardKiller.onLoop(WizardKiller.java:63)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:99)
	at java.lang.Thread.run(Unknown Source)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...