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

Fix null Exception at _$BluetoothDeviceFromJson and BluetoothManager.state. #26

Merged

Conversation

ttyniwa
Copy link
Contributor

@ttyniwa ttyniwa commented Oct 2, 2021

This PR solves andrey-ushakov/esc_pos_bluetooth#91

error message:

E/flutter ( 9214): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'Null' is not a subtype of type 'bool' in type cast
E/flutter ( 9214): #0      _$BluetoothDeviceFromJson
package:flutter_bluetooth_basic/src/bluetooth_device.g.dart:14
E/flutter ( 9214): #1      new BluetoothDevice.fromJson
package:flutter_bluetooth_basic/src/bluetooth_device.dart:15
...

 and BluetoothManager.state.

error message:
Unhandled Exception: type 'Null' is not a subtype of type 'bool' in type cast
@jobypthomas
Copy link

@andrey-ushakov Would you please allow this change in?

@andrey-ushakov andrey-ushakov merged commit 210fcb3 into andrey-ushakov:master Oct 4, 2021
@andrey-ushakov
Copy link
Owner

Awesome! Thank you for your contribution!
As I don't have a pos printer currently, it becomes hard to test and maintain the package.
Your PR are always welcome!! :)

@jobypthomas
Copy link

@andrey-ushakov when will it be released in pub.dev?

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.

3 participants