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.

Tabs NullPointerException

Featured Replies

I get NullPointerExceptions on "getTabs().isOpen()" and "getMagic().canCast([some spell])". Is anybody also having these problems? I also figured out that some scripts I used made by others are exiting immediately after starting it or are not functioning correctly. This happened after today's update. Before the update, it worked fine (I played today). Am I doing something wrong or did the update break stuff?

These are my exceptions:

lines: 121-126

if (getMagic().canCast(spell)) {
    log("Cast to " + spell.toString() + " on " + npc.getName());
    getMagic().castSpellOnEntity(spell, npc);
} else {
    stop(false);
}
java.lang.NullPointerException
	at org.osbot.rs07.api.Magic.canCast(wm:23)
	at org.osbot.rs07.api.Magic.canCast(wm:46)
	at s.onLoop(s.java:121)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(tl:104)
	at java.lang.Thread.run(Unknown Source)

 

Line: 173

log(getTabs().getOpen());
[ERROR][08/30 07:01:34 PM]: Uncaught exception!
java.lang.NullPointerException
	at org.osbot.rs07.script.MethodProvider.log(yn:866)
	at s$1.checkMouseEvent(s.java:173)
	at org.osbot.rs07.input.mouse.BotMouseListener.mouseClicked(yy:218)
	at org.osbot.rs07.input.mouse.ClientMouseEventHandler.generateBotMouseEvent(nk:73)
	at org.osbot.rs07.input.mouse.ClientMouseEventHandler.iiIiIiiiiiiI(nk:72)
	at org.osbot.rs07.input.mouse.ClientMouseEventHandler.mouseClicked(nk:44)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

just came here to post about getting an error on "tabs.getOpen()" . I also cannot interact with inventory objects (where it was working fine before the update). i wonder if the update broke or changed some things?

Today is Thursday which means there has been a game update. This update schedule has remained the same way for over 5 years. Sometimes our auto-updater works, sometimes it doesn't. From now on whenever you have problems with the client on a Thursday, just be patient and try every few hours or so. Sometimes the update is automatic, sometimes it takes us a little bit of work, sometimes it takes us a lot of work.

  • Alek locked this topic
Guest
This topic is now closed to further replies.

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.