phonegap / phonegap-plugin-contentsync

Download and cache remotely hosted content
Apache License 2.0
206 stars 98 forks source link

java.lang.NullPointerException: Attempt to get length of null array #170

Closed pitAlex closed 7 years ago

pitAlex commented 7 years ago

Hello,

One of our users keeps getting a crash on the android app with the following message:

java.lang.NullPointerException: Attempt to get length of null array at com.adobe.phonegap.contentsync.Sync.removeFolder(Sync.java:1123) at com.adobe.phonegap.contentsync.Sync.removeFolder(Sync.java:1124) at com.adobe.phonegap.contentsync.Sync.removeFolder(Sync.java:1124) at com.adobe.phonegap.contentsync.Sync.removeFolder(Sync.java:1124) at com.adobe.phonegap.contentsync.Sync.access$1200(Sync.java:70) at com.adobe.phonegap.contentsync.Sync$4.run(Sync.java:522) 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:818)

The device is a Galaxy S4 (jfltevzw) on Android 5.0.

Any idea what could be the cause?

macdonst commented 7 years ago

@pitAlex what version of the plugin are you using in your app?

pitAlex commented 7 years ago

1.3.3

ramboz commented 7 years ago

Should be fixed by the following PR: #171

macdonst commented 7 years ago

Thanks @ramboz, I already merged your PR. I'll look at releasing a 1.3.4 shortly.

macdonst commented 7 years ago

Fixed in 1.3.4.