LOGS :
FATAL EXCEPTION: pool-1-thread-2
Process: com.fullspark.nhhp, PID: 2746
java.lang.NullPointerException: Attempt to get length of null array at com.adobe.phonegap.contentsync.Sync$4.run(Sync.java:520) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecuto at java.lang.Thread.run(Thread.java:818)
"dir.list().length", in the Log.d, at line 520 may cause "NullPointerException" as the list method returns either an array of string or null.
DOC: https://developer.android.com/reference/java/io/File.html#list()
LOGS : FATAL EXCEPTION: pool-1-thread-2 Process: com.fullspark.nhhp, PID: 2746 java.lang.NullPointerException: Attempt to get length of null array at com.adobe.phonegap.contentsync.Sync$4.run(Sync.java:520) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecuto at java.lang.Thread.run(Thread.java:818)