Catch null exception
@@ -108,12 +108,14 @@ class UploadService {
+ context.getString(R.string.app_name);
File directory = new File(logDir);
File[] files = directory.listFiles();
+ if (files != null) {
for (File file : files) {
if (file.getName().endsWith(".zip")) {
upload(file);
}
}
}
+ }
public void stop() {
client.cancelRequests(context, true);
