Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 11 MediaScannerConnection.java line 250 android.media.MediaScannerConnection.lambda$scanFile$2 #150

Open
rizwanrazi opened this issue Nov 28, 2021 · 0 comments

Comments

@rizwanrazi
Copy link

rizwanrazi commented Nov 28, 2021

I am getting this error in android 11 only

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference
android.media.MediaScannerConnection.lambda$scanFile$2 (MediaScannerConnection.java:250)
android.media.-$$Lambda$MediaScannerConnection$OHvRCUP9iHmcrBgJ56umGlJZPUU.run (Unknown Source:6)
android.os.Handler.handleCallback (Handler.java:938)
android.os.Handler.dispatchMessage (Handler.java:99)
android.os.Looper.loop (Looper.java:246)
android.os.HandlerThread.run (HandlerThread.java:67)

Screen Shot 2021-11-28 at 7 26 58 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant