Skip to content

check nullability of assistant#16580

Merged
tobiasKaminsky merged 1 commit into
masterfrom
check-nullability-of-assistant
Feb 25, 2026
Merged

check nullability of assistant#16580
tobiasKaminsky merged 1 commit into
masterfrom
check-nullability-of-assistant

Conversation

@alperozturk96

Copy link
Copy Markdown
Collaborator
Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'com.owncloud.android.lib.resources.status.CapabilityBooleanType com.owncloud.android.lib.resources.status.OCCapability.getAssistant()' on a null object reference
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4049)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:4236)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:112)
  at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem (TransactionExecutor.java:174)
  at android.app.servertransaction.TransactionExecutor.executeTransactionItems (TransactionExecutor.java:109)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:81)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2637)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loopOnce (Looper.java:232)
  at android.os.Looper.loop (Looper.java:317)
  at android.app.ActivityThread.main (ActivityThread.java:8751)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:892)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'com.owncloud.android.lib.resources.status.CapabilityBooleanType com.owncloud.android.lib.resources.status.OCCapability.getAssistant()' on a null object reference
  at com.owncloud.android.ui.activity.DrawerActivity.checkAssistantBottomNavigationMenu (DrawerActivity.java:328)
  at com.owncloud.android.ui.activity.DrawerActivity.setupDrawer (DrawerActivity.java:274)
  at com.owncloud.android.ui.activity.FileDisplayActivity.onCreate (FileDisplayActivity.kt:281)
  at android.app.Activity.performCreate (Activity.java:9002)
  at android.app.Activity.performCreate (Activity.java:8980)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1527)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:4031)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96

Copy link
Copy Markdown
Collaborator Author

/backport to stable-3.36

@github-actions

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7575
Dodgy code256256
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4444
Security1818
Total479479

@github-actions

Copy link
Copy Markdown

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16580.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions

Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@tobiasKaminsky tobiasKaminsky merged commit 6d41704 into master Feb 25, 2026
22 of 23 checks passed
@tobiasKaminsky tobiasKaminsky deleted the check-nullability-of-assistant branch February 25, 2026 08:36
@alperozturk96 alperozturk96 added this to the Nextcloud App 33.1.0 milestone Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants