let outInput = id("g2s").findOne();
if (outInput) {
console.log('outInput: ' + outInput);
outInput.click();
}
14:25:32.328/E: Parameter specified as non-null is null: method com.stardust.autojs.rhino.AndroidContextFactory$WrapFactory.wrap, parameter scope
java.lang.NullPointerException: Parameter specified as non-null is null: method com.stardust.autojs.rhino.AndroidContextFactory$WrapFactory.wrap, parameter scope
at com.stardust.autojs.rhino.AndroidContextFactory$WrapFactory.wrap(Unknown Source:7)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:227)
at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:791)
at org.mozilla.javascript.ScriptableObject.getDefaultValue(ScriptableObject.java:766)
at org.mozilla.javascript.ScriptRuntime.add(ScriptRuntime.java:2938)
at org.mozilla.javascript.Interpreter.doAdd(Interpreter.java:3541)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1492)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1061)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3869)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:103)
at com.stardust.autojs.engine.RhinoJavaScriptEngine.doExecution(RhinoJavaScriptEngine.kt:72)
at com.stardust.autojs.engine.JavaScriptEngine.execute(JavaScriptEngine.java:23)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.access$001(LoopBasedJavaScriptEngine.java:17)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.lambda$execute$0(LoopBasedJavaScriptEngine.java:42)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.$r8$lambda$1NcDcpQbNQ6-P6Sb8blHuKpVcWo(Unknown Source:0)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine$$ExternalSyntheticLambda0.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8673)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)