소스 검색

Dont use null path

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 년 전
부모
커밋
3bcd2b3703
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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 {