Resolved NPE @ Worlds.getCurrent()

Discussion in 'Client & Site Support' started by SlashnHax, Aug 4, 2015.

  1. Code (Text):
    1.  
    2. (12:22:48) Caused by: java.lang.NullPointerException
    3. (12:22:48)     at app.Ip.for(oub:144)
    4. (12:22:48)     at com.runemate.game.api.hybrid.local.Worlds.getCurrent(lfc:168)
    5. (12:22:48)     at com.slashnhax.bots.commissioned.alpha_nightshades.tasks.WorldHopper.lambda$execute$0(WorldHopper.java:37)
    6. (12:22:48)     at com.slashnhax.bots.commissioned.alpha_nightshades.tasks.WorldHopper$$Lambda$449/1551809947.call(Unknown Source)
    7. (12:22:48)     at com.runemate.game.api.script.Execution.delayUntil(aob:233)
    8. (12:22:48)     ... 8 more
    My code:
    Code (Text):
    1.  
    2. if(Execution.delayUntil(()-> RuneScape.isLoggedIn() && Worlds.getCurrent() == worlds[lastIndex%worlds.length], 20000)) {
    3.     Execution.delay(600, 1800);lastIndex++;
    4. }
    @Cloud
     
  2. Best Answer:
    Post #2 by Cloud, Aug 6, 2015
  3. fixed for next build.
     

Share This Page

Loading...