Преглед на файлове

NPE check on note, it should never be null due to our fetch, which fails back to "" (empty string), but there are few crash reports on google…

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky преди 6 години
родител
ревизия
b0f9c5ea68
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java

+ 1 - 1
src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java

@@ -283,7 +283,7 @@ public class FileDetailSharingFragment extends Fragment implements UserListAdapt
 
             String note = file.getNote();
 
-            if (!note.isEmpty()) {
+            if (!TextUtils.isEmpty(note)) {
                 sharedWithYouNote.setText(file.getNote());
                 sharedWithYouNote.setVisibility(View.VISIBLE);
             } else {