Browse Source

Merge pull request #389 from nextcloud/fixNPEinBehaviour

in case of sharedPref not accessible fallback to "do nothing"
Tobias Kaminsky 8 years ago
parent
commit
1bdbe6aef4

+ 1 - 1
src/com/owncloud/android/files/InstantUploadBroadcastReceiver.java

@@ -164,7 +164,7 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
             Log_OC.d(TAG, "upload file and delete original file");
             Log_OC.d(TAG, "upload file and delete original file");
             return FileUploader.LOCAL_BEHAVIOUR_DELETE;
             return FileUploader.LOCAL_BEHAVIOUR_DELETE;
         }
         }
-        return null;
+        return FileUploader.LOCAL_BEHAVIOUR_FORGET;
     }
     }
 
 
     private void handleNewVideoAction(Context context, Intent intent) {
     private void handleNewVideoAction(Context context, Intent intent) {