android - Null Ponter Exception while using Monkeytalk tool -
hello have implemented monkeytalk library in app used following steps given @ https://www.gorillalogic.com/monkeytalk-documentation/monkeytalk-getting-started/install-agent/android.
through these steps able record , playback steps in monkey talk ide.
now issue when use app after installing library crashes randomly @ several places giving nullpointerexception
. log of 1 such incident given below:
05-08 19:29:13.661: e/androidruntime(27158): fatal exception: thread-4790 05-08 19:29:13.661: e/androidruntime(27158): java.lang.nullpointerexception 05-08 19:29:13.661: e/androidruntime(27158): @ com.gorillalogic.fonemonkey.activitymanager$2.run(activitymanager.java:112) 05-08 19:29:13.661: e/androidruntime(27158): @ java.lang.thread.run(thread.java:856)
any resolve issue appreciated.
i using eclipse juno , target sdk 4.2 development.
i got same error when tried invoke application (which not have monkey talk agent) our application integrated monkey talk agent. have added null pointer check in monkey talk source code , fixed problem.
activitymanager.cjava - checkisclipped() function:
// adding null pointer check case application invokes application not have // monkeytalk agent integrated (for eg: zxing barcode scanner). in case top activity null. catch (nullpointerexception e) { e.printstacktrace(); }
Comments
Post a Comment