phonegap / phonegap-plugin-contentsync

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

Issue #170 Fixing potential NullPointerException while removing folders on Android #171

Closed ramboz closed 7 years ago

ramboz commented 7 years ago

According to https://docs.oracle.com/javase/7/docs/api/java/io/File.html#listFiles(), listFiles can potentially return null. So we just add a quick test to avoid the NPE.