Avoid null pointer in logs oc-android-1-4-0
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 12 Apr 2013 11:31:27 +0000 (13:31 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 12 Apr 2013 11:31:27 +0000 (13:31 +0200)
src/com/owncloud/android/operations/SynchronizeFileOperation.java

index 606017a..4ed56d7 100644 (file)
@@ -162,7 +162,7 @@ public class SynchronizeFileOperation extends RemoteOperation {
           
         } catch (Exception e) {
             result = new RemoteOperationResult(e);
-            Log.e(TAG, "Synchronizing " + mAccount.name + ", file " + mLocalFile.getRemotePath() + ": " + result.getLogMessage(), result.getException());
+            Log.e(TAG, "Synchronizing " + mAccount.name + ", file " + (mLocalFile != null ? mLocalFile.getRemotePath() : "NULL") + ": " + result.getLogMessage(), result.getException());
 
         } finally {
             if (propfind != null)