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 @ Worlds.getCurrent()

Joined
Dec 10, 2014
Messages
3,255
Code:
(12:22:48) Caused by: java.lang.NullPointerException
(12:22:48)     at app.Ip.for(oub:144)
(12:22:48)     at com.runemate.game.api.hybrid.local.Worlds.getCurrent(lfc:168)
(12:22:48)     at com.slashnhax.bots.commissioned.alpha_nightshades.tasks.WorldHopper.lambda$execute$0(WorldHopper.java:37)
(12:22:48)     at com.slashnhax.bots.commissioned.alpha_nightshades.tasks.WorldHopper$$Lambda$449/1551809947.call(Unknown Source)
(12:22:48)     at com.runemate.game.api.script.Execution.delayUntil(aob:233)
(12:22:48)     ... 8 more

My code:
Code:
if(Execution.delayUntil(()-> RuneScape.isLoggedIn() && Worlds.getCurrent() == worlds[lastIndex%worlds.length], 20000)) {
    Execution.delay(600, 1800);lastIndex++;
}

@Cloud
 
Top