Zfinix / carrier_info

📱 Carrier Info gets networkType, networkGeneration, mobileCountryCode, mobileCountryCode, e.t.c from both android and iOS devices.
MIT License
34 stars 48 forks source link

celll id issue #39

Open Mujjafar-Momin opened 1 year ago

Mujjafar-Momin commented 1 year ago

i was using to get only carrier name but I am getting issue on this line cellId: CellId.fromMap(map['cellId']),

E/flutter ( 8993): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<dynamic, dynamic>' E/flutter ( 8993): #0 new TelephonyInfo.fromMap (package:carrier_info/src/models/android_carrier_data.dart:382:33) E/flutter ( 8993): #1 new AndroidCarrierData.fromMap. (package:carrier_info/src/models/android_carrier_data.dart:64:58) E/flutter ( 8993): #2 MappedListIterable.elementAt (dart:_internal/iterable.dart:415:31) E/flutter ( 8993): #3 ListIterator.moveNext (dart:_internal/iterable.dart:344:26) E/flutter ( 8993): #4 new List.from (dart:core-patch/array_patch.dart:37:17) E/flutter ( 8993): #5 new AndroidCarrierData.fromMap (package:carrier_info/src/models/android_carrier_data.dart:63:22) E/flutter ( 8993): #6 CarrierInfo.getAndroidInfo (package:carrier_info/src/carrier_info.dart:12:31) E/flutter ( 8993): E/flutter ( 8993): #7 SimName.init (package:ffclite/utils/app_device_info.dart:52:26) E/flutter ( 8993): E/flutter ( 8993): #8 main (package:ffclite/main.dart:23:3) E/flutter ( 8993): please check

LarssK-TS commented 8 months ago

did you manage to resolve this?