Browse Source

Dont use null path

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
3bcd2b3703
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/src/main/java/com/owncloud/android/datamodel/OCFile.java

+ 5 - 0
app/src/main/java/com/owncloud/android/datamodel/OCFile.java

@@ -265,6 +265,11 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
         }
 
         if (isFolder()) {
+            if (decryptedRemotePath.equals("/null/")) {
+                Log_OC.d(TAG, "Null folder path found");
+                return remotePath;
+            }
+
             if (decryptedRemotePath.endsWith(PATH_SEPARATOR)) {
                 return decryptedRemotePath;
             } else {