Преглед на файлове

intent may be null

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky преди 6 години
родител
ревизия
4d15ce3b3d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/owncloud/android/services/OperationsService.java

+ 1 - 1
src/main/java/com/owncloud/android/services/OperationsService.java

@@ -182,7 +182,7 @@ public class OperationsService extends Service {
 
         // WIP: for the moment, only SYNC_FOLDER is expected here;
         // the rest of the operations are requested through the Binder
-        if (ACTION_SYNC_FOLDER.equals(intent.getAction())) {
+        if (intent != null && ACTION_SYNC_FOLDER.equals(intent.getAction())) {
 
             if (!intent.hasExtra(EXTRA_ACCOUNT) || !intent.hasExtra(EXTRA_REMOTE_PATH)) {
                 Log_OC.e(TAG, "Not enough information provided in intent");