Jump 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.

Bug - widget filter nullpointer

Featured Replies

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

  2.6.4

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

  Widget.singleFilter() and also certain api calls (tabs.open, spell.cast) will occasionally throw a nullpointer with a similar stacktrace. This is just one example

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

java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(pk:468)
    at org.osbot.rs07.api.Widgets.singleFilter(re:522)
    at org.osbot.rs07.api.Widgets.singleFilter(re:373)
    at org.osbot.rs07.api.Widgets.closeOpenInterface(re:208)
    at org.osbot.rs07.api.Tabs.open(jl:8)
    at org.osbot.rs07.api.Tabs.open(jl:107)

4. How can you replicate the issue?

  Its not easy to replicate, but it seems that any method that uses singleFilter will see it every now and then

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

  been seeing this for a while now

  • Author

Here's a similar log but with a different exception, I believe triggered while world hopping so the client may not be fully loaded

[ERROR][Bot #1][11/14 10:38:07 PM]: Inventory container is null
[ERROR][Bot #1][11/14 10:38:08 PM]: Error executing event : c.f.r@537f9116
java.lang.ArrayIndexOutOfBoundsException: 930
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(pk:491)
    at org.osbot.rs07.api.Widgets.singleFilter(re:522)
    at org.osbot.rs07.api.Widgets.singleFilter(re:373)
    at org.osbot.rs07.api.Widgets.closeOpenInterface(re:208)
    at org.osbot.rs07.api.Tabs.open(jl:8)
    at org.osbot.rs07.api.Tabs.open(jl:107)

  • Author

java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidget(pk:942)
    at org.osbot.rs07.api.Bank.getAbsoluteSlotPosition(ym:701)
    at org.osbot.rs07.api.Bank.isSlotVisible(ym:702)
    at org.osbot.rs07.api.Bank.scrollToSlot(ym:1250)
    at org.osbot.rs07.api.Bank.withdraw(ym:1276)
    at org.osbot.rs07.api.Bank.withdraw(ym:1037)
    at org.osbot.rs07.api.Bank.withdraw(ym:1142)

java.lang.ArrayIndexOutOfBoundsException: 857
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidget(pk:942)
    at org.osbot.rs07.api.Worlds.iIiIiiiiiIiI(di:99)
    at org.osbot.rs07.api.Worlds.IiiIiiiiiiiI(di:549)
    at org.osbot.rs07.api.Worlds.hop(di:347)
    at org.osbot.rs07.api.Worlds.hop(di:436)

Edited by Camaro

  • 2 weeks later...
  • Author

@Patrick 2.6.5 got this one again, although might not be related to the initial exception

java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidget(wf:307)
    at org.osbot.rs07.api.Bank.getAbsoluteSlotPosition(ce:841)
    at org.osbot.rs07.api.Bank.isSlotVisible(ce:898)
    at org.osbot.rs07.api.Bank.scrollToSlot(ce:907)
    at org.osbot.rs07.api.Bank.withdraw(ce:1113)
    at org.osbot.rs07.api.Bank.withdraw(ce:1180)
    at org.osbot.rs07.api.Bank.withdraw(ce:1240)

  • 2 weeks later...
  • Author

@Patrick

2.6.8

java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(ch:582)
    at org.osbot.rs07.api.Widgets.filter(no:707)
    at org.osbot.rs07.api.Widgets.filter(no:829)
    at org.osbot.rs07.api.Widgets.containingText(no:654)
    at org.osbot.rs07.api.Widgets.containingText(no:361)

I think the next ones are caused by world hopping

java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(ch:582)
    at org.osbot.rs07.api.Widgets.singleFilter(no:820)
    at org.osbot.rs07.api.Widgets.singleFilter(no:550)
    at org.osbot.rs07.api.Widgets.closeOpenInterface(no:138)
    at org.osbot.rs07.api.Tabs.open(se:25)
    at org.osbot.rs07.api.Tabs.open(se:73)

java.lang.ArrayIndexOutOfBoundsException: 125
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(ch:582)
    at org.osbot.rs07.api.Widgets.singleFilter(no:820)
    at org.osbot.rs07.api.Widgets.singleFilter(no:550)
    at org.osbot.rs07.api.Widgets.closeOpenInterface(no:138)
    at org.osbot.rs07.api.Tabs.open(se:25)
    at org.osbot.rs07.api.Tabs.open(se:73)

Edited by Camaro

  • 3 weeks later...
  • 3 weeks later...
  • Author

2.6.11

java.lang.NullPointerException
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(tm:773)
    at org.osbot.rs07.api.Widgets.singleFilter(vm:865)
    at org.osbot.rs07.api.Widgets.singleFilter(vm:534)
    at org.osbot.rs07.api.Widgets.getWidgetContainingText(vm:899)
    at org.osbot.rs07.api.Widgets.getWidgetContainingText(vm:410)
    at org.osbot.rs07.api.LogoutTab.IIIiiiiIIiIi(je:137)
    at org.osbot.rs07.api.LogoutTab.iiIiIiiIIIii(je:270)
    at org.osbot.rs07.api.Worlds.iiIiIiiIIIii(pg:687)
    at org.osbot.rs07.api.Worlds.hover(pg:1025)

java.lang.ArrayIndexOutOfBoundsException: 478
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(tm:773)
    at org.osbot.rs07.api.Widgets.singleFilter(vm:865)
    at org.osbot.rs07.api.Widgets.singleFilter(vm:534)
    at org.osbot.rs07.api.Worlds.iiiiIiiiIiiI(pg:47)
    at org.osbot.rs07.api.Worlds.iiIIiiiiiIII(pg:111)
    at org.osbot.rs07.api.Worlds.iiIiIiiIIIii(pg:805)
    at org.osbot.rs07.api.Worlds.hover(pg:1025)

java.lang.ArrayIndexOutOfBoundsException: 1003
    at org.osbot.rs07.api.ui.RS2Widget.getChildWidgets(tm:773)
    at org.osbot.rs07.api.Widgets.singleFilter(vm:865)
    at org.osbot.rs07.api.Widgets.singleFilter(vm:534)
    at org.osbot.rs07.api.Widgets.getWidgetContainingText(vm:899)
    at org.osbot.rs07.api.Widgets.getWidgetContainingText(vm:410)

  • Author
try {
	return getWorlds().hover(worldToHover, breakCondition);
} catch (Exception e) {
	warn("Exception in world hover");
	e.printStackTrace();
}

not too much lol

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.