Skip to content

Commit

Permalink
fix: 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 11f2bab commit 9b654d2
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 @@ -61,7 +61,7 @@ class AndroidCarrierData {
isMultiSimSupported: map['isMultiSimSupported'] ?? '',
isSmsCapable: map['isSmsCapable'] ?? false,
telephonyInfo: List<TelephonyInfo>.from(
map['telephonyInfo']?.map((x) => TelephonyInfo.fromMap(x))),
map['telephonyInfo']?.map((x) => x ?? TelephonyInfo.fromMap(x))),
);
}

Expand Down

0 comments on commit 9b654d2

Please sign in to comment.