Skip to content

Fix null check for pendingResult in permission request handling#73

Open
vemedara wants to merge 1 commit intoamoLink:mainfrom
vemedara:app-crash-android-14
Open

Fix null check for pendingResult in permission request handling#73
vemedara wants to merge 1 commit intoamoLink:mainfrom
vemedara:app-crash-android-14

Conversation

@vemedara
Copy link
Copy Markdown

This pull request adds improved error handling to the Bluetooth scanning permissions flow in the Android plugin. Specifically, it ensures that if the pendingResult is unexpectedly null when handling permission denial, an error is logged for easier debugging.

Error handling improvements:

  • Added a check for a null pendingResult in the onRequestPermissionsResult method of BluetoothPrintPlusPlugin.java, and now logs an error message using LogUtils.e if it is null.

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

Successfully merging this pull request may close these issues.

2 participants