Sfoglia il codice sorgente

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 anni fa
parent
commit
b0f9c5ea68

+ 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 {