应用程序使用Cloudrail 2.7.0与门户网站统计信息崩溃

时间:2016-09-16 17:05:15

标签: android cloudrail

在看似工作一段时间之后,cloudrail 2.7.0现在反复崩溃了以下内容:

Fatal Exception: java.lang.RuntimeException: ServiceCode Error in function selfTest at 26
   at com.cloudrail.si.servicecode.Interpreter.run(Unknown Source)
   at com.cloudrail.si.servicecode.Interpreter.callFunction(Unknown Source)
   at com.cloudrail.si.servicecode.InitSelfTest.execute(Unknown Source)
   at com.cloudrail.si.servicecode.InitSelfTest.initTest(Unknown Source)
   at com.cloudrail.si.statistics.InitSelfTestTask.run(Unknown Source)
Caused by java.lang.NullPointerException
   at com.cloudrail.si.servicecode.commands.http.RequestCall.execute(Unknown Source)
   at com.cloudrail.si.servicecode.Interpreter.run(Unknown Source)
   at com.cloudrail.si.servicecode.Interpreter.callFunction(Unknown Source)
   at com.cloudrail.si.servicecode.InitSelfTest.execute(Unknown Source)
   at com.cloudrail.si.servicecode.InitSelfTest.initTest(Unknown Source)
   at com.cloudrail.si.statistics.InitSelfTestTask.run(Unknown Source)

我已尝试单步执行代码但无法查看原因。我可以看到,在InitSelfTest中,以下行没有包含在try / catch块中,因此可能假设appContext.getPackageName()为非null?

  ip.callFunction("selfTest", new Object[]{interpreterStorage, appContext.getPackageName(), appInfo1.className, appVersionName, appVersionCode});

1 个答案:

答案 0 :(得分:0)

此问题已在2.7.1版中解决。它也是通过github报告的:https://github.com/CloudRail/cloudrail-si-android-sdk/issues/38