Skip to content

Commit

Permalink
fix: attempt 4 of fixing null exception when telephonyInfo is null
Browse files Browse the repository at this point in the history
  • Loading branch information
onghuisheng committed Jul 9, 2023
1 parent 136c129 commit cd8779c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/models/android_carrier_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class TelephonyInfo {
displayName: map['displayName'] ?? '',
simState: map['simState'] ?? '',
isoCountryCode: map['isoCountryCode'] ?? '',
cellId: CellId.fromMap(map['cellId']),
cellId: CellId.fromMap(map['cellId'] ?? Map<dynamic, dynamic>()),
phoneNumber: map['phoneNumber'] ?? '',
carrierName: map['carrierName'] ?? '',
subscriptionId: map['subscriptionId'] ?? 0,
Expand Down

0 comments on commit cd8779c

Please sign in to comment.