mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Fix NullPointerException when invoking equals() on null String reference
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
6c8c58f220
commit
0c1e2bcc1d
1 changed files with 6 additions and 4 deletions
|
@ -1071,12 +1071,14 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
|||
List<OCFile> ret = new ArrayList<>();
|
||||
|
||||
for (OCFile file : files) {
|
||||
if (file.getOwnerId().equals(userId) &&
|
||||
!file.isSharedWithMe() &&
|
||||
!file.isGroupFolder()) {
|
||||
String ownerId = file.getOwnerId();
|
||||
|
||||
if (ownerId != null && userId != null) {
|
||||
if (ownerId.equals(userId) && !file.isSharedWithMe() && !file.isGroupFolder()) {
|
||||
ret.add(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue