mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 21:25:35 +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,10 +1071,12 @@ 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()) {
|
||||
ret.add(file);
|
||||
String ownerId = file.getOwnerId();
|
||||
|
||||
if (ownerId != null && userId != null) {
|
||||
if (ownerId.equals(userId) && !file.isSharedWithMe() && !file.isGroupFolder()) {
|
||||
ret.add(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue