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

[Bug report] java.lang.NullPointerException #1260

Open
liugaocomeon opened this issue Feb 10, 2025 · 0 comments
Open

[Bug report] java.lang.NullPointerException #1260

liugaocomeon opened this issue Feb 10, 2025 · 0 comments

Comments

@liugaocomeon
Copy link

Version

3.1.0

Platforms

Android

Device Model

Android 14 Android 15

flutter info

[✓] Flutter (Channel stable, 3.22.3, on macOS 15.3 24D60 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 16.2)
    ! CocoaPods 1.12.1 out of date (1.13.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods for instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.96.4)
[✓] Connected device (4 available)

How to reproduce?

firebase crash report
Caused by java.lang.NullPointerException
com.fluttercandies.photo_manager.permission.PermissionsUtils.dealResult (PermissionsUtils.kt:138)
com.fluttercandies.photo_manager.PhotoManagerPlugin$Companion.createAddRequestPermissionsResultListener$lambda$1 (PhotoManagerPlugin.kt:28)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onRequestPermissionsResult (FlutterEngineConnectionRegistry.java:746)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onRequestPermissionsResult (FlutterEngineConnectionRegistry.java:405)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onRequestPermissionsResult (FlutterActivityAndFragmentDelegate.java:912)
io.flutter.embedding.android.FlutterActivity.onRequestPermissionsResult (FlutterActivity.java:967)
android.app.Activity.dispatchRequestPermissionsResult (Activity.java:9089)
android.app.Activity.dispatchActivityResult (Activity.java:8947)
android.app.ActivityThread.deliverResults (ActivityThread.java:5562)
android.app.ActivityThread.handleSendResult (ActivityThread.java:5608)
android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:67)
android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2484)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:205)
android.os.Looper.loop (Looper.java:294)
android.app.ActivityThread.main (ActivityThread.java:8227)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:573)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)

Logs

Example code (optional)

Contact

No response

@liugaocomeon liugaocomeon changed the title [Bug report] [Bug report] java.lang.NullPointerException Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant