当我的手机上没有互联网时,我得到一个空异常。
它在这里显示错误:
验证结果:字符串?= jsBinder.androidWrapper(函数名,gson.toJson(输入))
输入是任何类型
functionName 是字符串类型
gson 是 GSON 类型
java.lang.NullPointerException: Null Duktape context - did you close your Duktape? at com.squareup.duktape.Duktape.call(Native Method) at com.squareup.duktape.Duktape.access$100(Duktape.java:26) at com.squareup.duktape.Duktape$1.invoke(Duktape.java:132) at java.lang.reflect.Proxy.invoke(Proxy.java:1006) at $Proxy19.androidWrapper(Unknown Source) at com.repository.network.js.JsEngineProvider.get(JsEngineProvider.kt:60) at com.repository.network.js.JsEngineProvider.access$get(JsEngineProvider.kt:12) at com.repository.network.js.JsEngineProvider$getImplementation$1.invoke(JsEngineProvider.kt:54) at java.lang.reflect.Proxy.invoke(Proxy.java:1006) at $Proxy20.getGuidesSnapshot(Unknown Source)