Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • NullPointerException thrown after stopping a script


    Recommended Posts

    The following exception was thrown after I stopped a script I am developing. I tried rerunning the script and stopping it but it doesn't seem to recreate the error.

    12:35:41 PM: [ERROR] Exception has occurred while running! Please report error to developer if problem persists:
    	java.lang.NullPointerException: Cannot read the array length because "<local1>" is null
    	at org.dreambot.api.Client.getPlayers(Client.java)
    	at org.dreambot.api.methods.interactive.Players.all(Players.java)
    	at org.dreambot.api.methods.interactive.Players.all(Players.java)
    	at org.dreambot.api.methods.interactive.Players.closest(Players.java)
    	at org.dreambot.api.wrappers.interactive.Character.getCharacterInteractingWithMe(Character.java)
    	at org.dreambot.api.methods.walking.impl.Walking.0(Walking.java)
    	at org.dreambot.api.methods.walking.impl.Walking.shouldWalk(Walking.java)
    	at org.dreambot.api.methods.walking.impl.Walking.shouldWalk(Walking.java)
    	at boomslap.magetrainto33.App$GoToTile.lambda$0(App.java:60)
    	at org.dreambot.api.methods.MethodProvider.sleepUntil(MethodProvider.java)
    	at boomslap.magetrainto33.App$GoToTile.execute(App.java:60)
    	at org.dreambot.api.script.impl.TaskScript.onLoop(TaskScript.java)
    	at org.dreambot.api.script.AbstractScript.run(AbstractScript.java)
    	at java.base/java.lang.Thread.run(Thread.java:833)


    Link to comment
    Share on other sites


    This topic is now archived and is closed to further replies.

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.