nowster Posted August 6, 2016 Share Posted August 6, 2016 (edited) java -jar "osbot 2.4.81.jar" -login xx:xx -bot zz:zz:1234 -debug 5005 -script tests:10,20 String pars; String[] parsSplitted; @[member='Override'] public void onStart() throws InterruptedException { if (getParameters() != null) { pars = getParameters(); parsSplitted = pars.split(","); log("First param: " + parsSplitted[0]); log("Second param: " + parsSplitted[1]); } } After logging in im getting this: [INFO][Bot #1][08/06 01:38:27 PM]: Terminating script tests...java.lang.NullPointerException [INFO][Bot #1][08/06 01:38:27 PM]: Script tests has exited! at main.onStart(main.java:37) at org.osbot.rs07.event.ScriptExecutor.IIIIIiiIIiIi(vi:251) at org.osbot.rs07.event.ScriptExecutor.start(vi:10) at org.osbot.C.run(ur:39) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [INFO][Bot #1][08/06 01:38:27 PM]: Started script : tests Edited August 6, 2016 by nowster Quote Link to comment Share on other sites More sharing options...
Auron Posted August 7, 2016 Share Posted August 7, 2016 What is line 37? Quote Link to comment Share on other sites More sharing options...
nowster Posted August 8, 2016 Author Share Posted August 8, 2016 (edited) What is line 37? log("Second param: " + parsSplitted[1]); Edited August 8, 2016 by nowster Quote Link to comment Share on other sites More sharing options...
Tom Posted August 24, 2016 Share Posted August 24, 2016 Did you end up solving this nowster? Quote Link to comment Share on other sites More sharing options...