Skip to content

fix(file-detail): show snackbar crash#16579

Merged
tobiasKaminsky merged 1 commit intomasterfrom
fix/snackbar-crash
Feb 25, 2026
Merged

fix(file-detail): show snackbar crash#16579
tobiasKaminsky merged 1 commit intomasterfrom
fix/snackbar-crash

Conversation

@alperozturk96
Copy link
Collaborator

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.view.View.getResources()' on a null object reference
  at com.google.android.material.snackbar.Snackbar.make (Snackbar.java:191)
  at com.owncloud.android.utils.DisplayUtils.showSnackMessage (DisplayUtils.java:634)
  at com.owncloud.android.ui.fragment.FileDetailSharingFragment.lambda$fetchSharees$1 (FileDetailSharingFragment.java:189)
  at com.owncloud.android.ui.fragment.FileDetailSharingFragment.$r8$lambda$YWJAJ2t4LoLqlEaRn1FST1E5QaY (Unknown Source)
  at com.owncloud.android.ui.fragment.FileDetailSharingFragment$$ExternalSyntheticLambda9.invoke (D8$$SyntheticClass)
  at com.owncloud.android.ui.fragment.share.RemoteShareRepository$fetchSharees$1$1.invokeSuspend (RemoteShareRepository.kt:54)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:34)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:101)
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8757)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.36

@github-actions
Copy link

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

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7575
Dodgy code256253
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4444
Security1818
Total479476

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16579.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.

@tobiasKaminsky tobiasKaminsky merged commit be018b8 into master Feb 25, 2026
21 of 23 checks passed
@tobiasKaminsky tobiasKaminsky deleted the fix/snackbar-crash branch February 25, 2026 08:42
@tobiasKaminsky tobiasKaminsky added this to the Nextcloud App 33.0.1 milestone Feb 25, 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