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.

NPE in Chatbox#getMessages(MessageType)

Featured Replies

1. OSBot Version (do NOT put "current version", be specific)

2.4.82

 

2. A description of the issue. Include relevant logs.

Calls to getChatbox().getMessages(msgType) with any MessageType argument throws NullPointerException

 

3. Are you receiving any errors in the client canvas or the logger?

java.lang.NullPointerException
    at org.osbot.rs07.api.Chatbox.getMessages(gl:243)
    at scripttest.ScriptTest.onLoop(ScriptTest.java:25)

(might want to catch it to prevent client freeze, or stop after 1 loop)

 

4. How can you replicate the issue?

Code:

    @[member=Override]
    public int onLoop() throws InterruptedException {
        getChatbox().getMessages(Chatbox.MessageType.GAME);
        return 10000;
    }

5. Has this issue persisted through multiple versions? If so, how far back?

I believe a similar issue was fixed once before (in 2.4.6X), so it probably broke again in the later 2.4.6X or 2.4.7X.

I remember you posted the last report with Chatbox, however that was a different issue. This will get looked at later tonight, thanks!

I patched the issue you reported. Additionally I went ahead and :

 

-improved the widget caching so it doesn't break again

-improved the message collecting

-tested it thoroughly, including ironman chat messages

 

It will be in the next release. 

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.