Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

World Hop NPE on OSBot 2.3.117

Featured Replies

What version OSBot?

 

- 2.3.117

 

What happened? 

- Just running a part of my script that requires world hopping and I struck a random NPE. It's happening very frequently as well.

 

How to recreate? 

- I'm assuming just try to world hop, that's all I'm doing.

 

NPE Error

java.lang.NullPointerException
        at org.osbot.rs07.api.Chatbox.lambda$isVisible$44(dk:195)
        at org.osbot.rs07.api.Chatbox$$Lambda$64/617449810.test(Unknown Source)
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
        at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
        at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
        at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:529)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
        at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
        at org.osbot.rs07.api.Chatbox.isVisible(dk:195)
        at org.osbot.rs07.api.Dialogues.inDialogue(zj:166)
        at org.osbot.rs07.api.Dialogues.isPendingOption(zj:156)
        at org.osbot.rs07.api.Worlds$1.condition(on:183)
        at org.osbot.rs07.utility.ConditionalSleep.sleep(yc:16)
        at org.osbot.rs07.api.Worlds.hiddenHop(on:97)
        at org.osbot.rs07.api.Worlds.hopToP2PWorld(on:176)

P.S - Sorry Alek I keep finding all these bugs unsure.png

  • Author

Are you on mirror mode by any chance, or god awful slow internet?

I'm running on regular injection and I'm plugged directly up to Linksys' fastest router via Ethernet. Lol so I don't think it's my connection. I have super good upload and download rates, just checked.

Alright I looked at the code, everything is being properly checked and handled. From what I can determine it looks like it's busy hopping worlds and your code is still trying to execute; try using some conditional sleeps (if you are not already).  

 

The error is coming from Chatbox, code which is not used in world hopping whatsoever. 

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.