Bladeren bron

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 jaren geleden
bovenliggende
commit
b0f9c5ea68
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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 {