Explorar o código

Merge pull request #3821 from nextcloud/npeCheckOnNote

NPE check on note
Andy Scherzinger %!s(int64=6) %!d(string=hai) anos
pai
achega
78323554e6

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