We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you attempt to connect to an invalid BLE address the app crashes on iOS. Added the 2 lines below for a nil check to resolve it .
This is for version 143.
- (CBPeripheral*)retrievePeripheralWithUUID:(NSString*)uuid { NSUUID *typedUUID = [[NSUUID alloc] initWithUUIDString:uuid]; // FIX CRASH FOR INVALID UUID if (typedUUID == nil) return(nil); NSArray *existingPeripherals = [manager retrievePeripheralsWithIdentifiers:@[typedUUID]]; CBPeripheral *peripheral = nil; if ([existingPeripherals count] > 0) { peripheral = [existingPeripherals firstObject]; [peripherals addObject:peripheral]; } return peripheral; }
The text was updated successfully, but these errors were encountered:
Good pickup! I'll put it on my list... patches welcome however if you have the time & expertise to assist.
Sorry, something went wrong.
Improve input validation of UUIDs on iOS to avoid crashes (#1014, #905)
bdd6f7e
2ce4c56
peitschie
Successfully merging a pull request may close this issue.
If you attempt to connect to an invalid BLE address the app crashes on iOS. Added the 2 lines below for a nil check to resolve it .
This is for version 143.
The text was updated successfully, but these errors were encountered: