Browse Source

Avoid null pointer in logs

David A. Velasco 12 years ago
parent
commit
92dc4c568c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/com/owncloud/android/operations/SynchronizeFileOperation.java

+ 1 - 1
src/com/owncloud/android/operations/SynchronizeFileOperation.java

@@ -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)