We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26f46e4 + 4a28fb7 commit 6d41704Copy full SHA for 6d41704
app/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java
@@ -325,7 +325,13 @@ private void themeBottomNavigationMenu() {
325
326
@SuppressFBWarnings("RV")
327
private void checkAssistantBottomNavigationMenu() {
328
- boolean isAssistantAvailable = getCapabilities().getAssistant().isTrue();
+ final var capability = getCapabilities();
329
+ boolean isAssistantAvailable;
330
+ if (capability == null) {
331
+ isAssistantAvailable = false;
332
+ } else {
333
+ isAssistantAvailable = capability.getAssistant().isTrue();
334
+ }
335
336
bottomNavigationView
337
.getMenu()
0 commit comments