mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-28 17:38:55 +03:00
Merge pull request #2006 from nextcloud/bugfix/1977/fixNPEinBrowserFile
Bugfix/1977/fix NPE in BrowserFile
This commit is contained in:
commit
a5db665571
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ public class BrowserFile {
|
|||
|
||||
if (property instanceof ResourceType) {
|
||||
browserFile.isFile =
|
||||
!(((ResourceType) property).getTypes().contains(ResourceType.Companion.getCOLLECTION()));
|
||||
!(((ResourceType) property).getTypes().contains(ResourceType.Companion.getCOLLECTION()));
|
||||
}
|
||||
|
||||
if (property instanceof GetLastModified) {
|
||||
|
@ -109,7 +109,7 @@ public class BrowserFile {
|
|||
}
|
||||
}
|
||||
|
||||
if(browserFile.getPermissions().contains("R")){
|
||||
if (browserFile.getPermissions() != null && browserFile.getPermissions().contains("R")) {
|
||||
browserFile.isAllowedToReShare = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue