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: Add missing break in switch, which causes exceptions #17

Closed
wants to merge 1 commit into from

Conversation

russelltg
Copy link

Should be pretty uncontroversial--it falls through and then throws an exception when the argument cast fails.

@MrCsabaToth
Copy link

That's a great find. I checked flutter_blue source and this break is there, so it got lost with one of the PRs.

@@ -329,6 +329,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
mDevices.put(deviceId, new BluetoothDeviceCache(gattServer));
result.success(null);
Copy link

@kakopappa kakopappa Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boskokg
Copy link
Owner

boskokg commented Jan 31, 2022

Fixed on flutter_blue_plus 1.1.0

@boskokg boskokg closed this Jan 31, 2022
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.

None yet

4 participants