Skip to content

Commit

Permalink
fix: attempt 3 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 64b7292 commit 136c129
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'] ?? <dynamic, dynamic>{}),
cellId: CellId.fromMap(map['cellId']),
phoneNumber: map['phoneNumber'] ?? '',
carrierName: map['carrierName'] ?? '',
subscriptionId: map['subscriptionId'] ?? 0,
Expand Down

0 comments on commit 136c129

Please sign in to comment.