Jump to content

Tabs NullPointerException


feggit

Recommended Posts

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)
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Alek locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...