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.

NullPointerException in RandomManager.scan() when starting script

Featured Replies

1.7.48. It was fine, and already running bots are healthy, but when I start new instances, they log this exception after starting script.

 

[iNFO ][09/24/13 09:30:38 PM]: Started client!
[iNFO ][09/24/13 09:30:47 PM]: Started script : Move and test
[ERROR][09/24/13 09:30:48 PM]: Error on executing random worker!
java.lang.NullPointerException
    at org.osbot.CA.shouldActivate(rg:113)
    at org.osbot.script.rs2.randoms.RandomManager.scan(zo:81)
    at org.osbot.UA.run(zm:18)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
[ERROR][09/24/13 09:30:48 PM]: Error on executing random worker!
java.lang.NullPointerException
    at org.osbot.CA.shouldActivate(rg:113)
    at org.osbot.script.rs2.randoms.RandomManager.scan(zo:81)
    at org.osbot.UA.run(zm:18)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Edited by darkxor

  • Author

Tested, this only throws if I enable breaks in account settings, if disable - bot starts flawless.

 

P.S. If I logon first time manually, then it begins to work normally.

Edited by darkxor

tracing back through CA.class at line 113 is

 

    if ((a.bot.B()) && (!a.myPlayer().isUnderAttack())) 
which would make sense, because myPlayer() is null before logging in.

CA.class is Maxi's break taker.

Edited by dreamliner

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.