I am using IBM Worklight 6.0 to develop an Android Application.
I recently published an update on Google Play, and I found multiple crash reports like this one :
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NullPointerException
at com.worklight.common.WLUtils.getTree(WLUtils.java:558)
at com.worklight.common.WLUtils.getTree(WLUtils.java:553)
at com.worklight.common.WLUtils.computeChecksumOnExternal(WLUtils.java:537)
at com.worklight.common.WLUtils.checksumTestOnResources(WLUtils.java:421)
at com.worklight.androidgap.WLDroidGap.testResourcesChecksum(WLDroidGap.java:162)
at com.worklight.androidgap.WLDroidGap.doPrepareAssetsWork(WLDroidGap.java:684)
at com.worklight.androidgap.WLDroidGap.access$500(WLDroidGap.java:65)
at com.worklight.androidgap.WLDroidGap$PrepareClientAsyncTask.doInBackground(WLDroidGap.java:716)
at com.worklight.androidgap.WLDroidGap$PrepareClientAsyncTask.doInBackground(WLDroidGap.java:712)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
It's my last update since more than 10 months, and I am using an updated Worklight (6.0) studio version that I installed about two months ago.
This error occures on startup, and on multiple Android versions (I've seen crashes on 4.1 4.2 4.3 4.4 2.3) using multiple phones (Galaxy S5, S4, Xperia Z1, Z2, LG G3, HTC One ...)
This error happens for some users, and for them it happens every time.
This error happens only for users who already have the app and make an update.
Cleaning app cache let the app work again.
This crash happen right away on startup.
Does any one have this issue, or know how to fix it?
Is this a Worklight issue?