Skip to content

Issue found on crashlytics: FlutterError - Null check operator used on a null value #214

@razaen801

Description

@razaen801

I've found an issue in Crashlytics that might be helpful to optimize the library. I'm using the latest version v4.1.3 and flutter version 3.22.0. I havent logged full stack trace but the exact line for the exception is found on line package:multi_select_flutter/bottom_sheet/multi_select_bottom_sheet_field.dart:439.

Here are more details
Device
Model:iPhone 7
Orientation:Face Up
RAM free: 85.78 MB
Operating System
Version:15.8.3
Orientation:Portrait
Jailbroken: No
Crash
Date:Jan 13, 2025, 8:17:54 PM
App version:x.x.x (xx)

`# Crashlytics - Stack trace

Application: com.xxx.xxxx.stage

Platform: apple

Version: x.x.x (xx)

Issue: 93138a5bb73cf6f6a7c4156209acc29f

Session: ff4a46ad548b452d9b2f4e8f4f5d5a10_DNE_0_v2

Date: Mon Jan 13 2025 20:17:54 GMT+0545 (Nepal Time)

Fatal Exception: FlutterError
0 ??? 0x0 __MultiSelectBottomSheetFieldViewState._showBottomSheet + 439 (multi_select_bottom_sheet_field.dart:439)

Crashed: com.apple.main-thread
0 FirebaseCrashlytics 0x21c10 FIRCLSProcessRecordAllThreads + 184
1 FirebaseCrashlytics 0x21ff0 FIRCLSProcessRecordAllThreads + 1176
2 FirebaseCrashlytics 0x18e74 FIRCLSHandler + 48
3 FirebaseCrashlytics 0x131b0 FIRCLSExceptionRecordOnDemand + 1332
4 FirebaseCrashlytics 0x12bec FIRCLSExceptionRecordOnDemandModel + 228
5 FirebaseCrashlytics 0x213dc -[FIRCLSOnDemandModel recordOnDemandExceptionWithModel:] + 68
6 FirebaseCrashlytics 0x20e3c -[FIRCLSOnDemandModel recordOnDemandExceptionIfQuota:withDataCollectionEnabled:usingExistingReportManager:] + 164
7 FirebaseCrashlytics 0x2f608 -[FIRCrashlytics recordOnDemandExceptionModel:] + 140
8 Runner 0xb30b4 -[FLTFirebaseCrashlyticsPlugin recordError:withMethodCallResult:] + 177 (FLTFirebaseCrashlyticsPlugin.m:177)
9 Runner 0xb2970 -[FLTFirebaseCrashlyticsPlugin handleMethodCall:result:] + 101 (FLTFirebaseCrashlyticsPlugin.m:101)
10 Flutter 0x5c73d0 InternalFlutterGpu_Texture_AsImage + 6316
11 Flutter 0x43d38 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
12 libdispatch.dylib 0x63094 _dispatch_call_block_and_release + 24
13 libdispatch.dylib 0x64094 _dispatch_client_callout + 16
14 libdispatch.dylib 0x10d44 _dispatch_main_queue_drain + 928
15 libdispatch.dylib 0x10994 _dispatch_main_queue_callback_4CF$VARIANT$mp + 36
16 CoreFoundation 0x4e014 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
17 CoreFoundation 0xb4f8 __CFRunLoopRun + 2544
18 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
19 GraphicsServices 0x1988 GSEventRunModal + 160
20 UIKitCore 0x4e5a88 -[UIApplication _run] + 1080
21 UIKitCore 0x27ef78 UIApplicationMain + 336
22 Runner 0x4cd8 main + 8 (AppDelegate.swift:8)
23 ??? 0x102adc4d0 (Missing)

com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Foundation 0x17eac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x56fd0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x464ef4 -[UIEventFetcher threadMain] + 512
8 Foundation 0x64bdc NSThread__start + 792
9 libsystem_pthread.dylib 0x3338 _pthread_start + 116
10 libsystem_pthread.dylib 0x1938 thread_start + 8

io.flutter.1.ui
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Flutter 0x2eeae0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
6 Flutter 0x2ee728 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
7 Flutter 0x2ee438 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
8 libsystem_pthread.dylib 0x3338 _pthread_start + 116
9 libsystem_pthread.dylib 0x1938 thread_start + 8

io.flutter.1.raster
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Flutter 0x2eeae0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
6 Flutter 0x2ee728 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
7 Flutter 0x2ee438 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
8 libsystem_pthread.dylib 0x3338 _pthread_start + 116
9 libsystem_pthread.dylib 0x1938 thread_start + 8

io.flutter.1.io
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Flutter 0x2eeae0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
6 Flutter 0x2ee728 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
7 Flutter 0x2ee438 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
8 libsystem_pthread.dylib 0x3338 _pthread_start + 116
9 libsystem_pthread.dylib 0x1938 thread_start + 8

io.worker.1
0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x9bc4 _pthread_cond_wait$VARIANT$mp + 1240
2 Flutter 0x58df4 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
3 Flutter 0x2e84d0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
4 libsystem_pthread.dylib 0x3338 _pthread_start + 116
5 libsystem_pthread.dylib 0x1938 thread_start + 8

io.worker.2
0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x9bc4 _pthread_cond_wait$VARIANT$mp + 1240
2 Flutter 0x58df4 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
3 Flutter 0x2e84d0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
4 libsystem_pthread.dylib 0x3338 _pthread_start + 116
5 libsystem_pthread.dylib 0x1938 thread_start + 8

dart:io EventHandler
0 libsystem_kernel.dylib 0x2294 kevent + 8
1 Flutter 0x57ddac (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
2 Flutter 0x5a9204 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
3 libsystem_pthread.dylib 0x3338 _pthread_start + 116
4 libsystem_pthread.dylib 0x1938 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 FirebaseCrashlytics 0x1b5bc FIRCLSMachExceptionServer + 104
3 libsystem_pthread.dylib 0x3338 _pthread_start + 116
4 libsystem_pthread.dylib 0x1938 thread_start + 8

com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 CFNetwork 0x246b9c _CFURLStorageSessionDisableCache + 50420
6 Foundation 0x64bdc NSThread__start + 792
7 libsystem_pthread.dylib 0x3338 _pthread_start + 116
8 libsystem_pthread.dylib 0x1938 thread_start + 8

FlutterDownloaderIsolate.2.ui
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Flutter 0x2eeae0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
6 Flutter 0x2ee728 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
7 Flutter 0x2ee438 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
8 libsystem_pthread.dylib 0x3338 _pthread_start + 116
9 libsystem_pthread.dylib 0x1938 thread_start + 8

FlutterDownloaderIsolate.2.raster
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Flutter 0x2eeae0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
6 Flutter 0x2ee728 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
7 Flutter 0x2ee438 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
8 libsystem_pthread.dylib 0x3338 _pthread_start + 116
9 libsystem_pthread.dylib 0x1938 thread_start + 8

FlutterDownloaderIsolate.2.io
0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8
1 libsystem_kernel.dylib 0x107c mach_msg + 72
2 CoreFoundation 0x6c88 __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0xaf90 __CFRunLoopRun + 1160
4 CoreFoundation 0x1e174 CFRunLoopRunSpecific + 572
5 Flutter 0x2eeae0 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
6 Flutter 0x2ee728 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
7 Flutter 0x2ee438 (Missing UUID 4c4c44aa55553144a1b885a3aa65815c)
8 libsystem_pthread.dylib 0x3338 _pthread_start + 116
9 libsystem_pthread.dylib 0x1938 thread_start + 8

Thread
0 libsystem_kernel.dylib 0x1014 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1e4c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x192c start_wqthread + 8

Thread
0 libsystem_kernel.dylib 0x1014 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1e4c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x192c start_wqthread + 8

Thread
0 libsystem_pthread.dylib 0x1924 start_wqthread + 270

Thread
0 libsystem_kernel.dylib 0x1014 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1e4c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x192c start_wqthread + 8

DartWorker
0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x9bf0 _pthread_cond_wait$VARIANT$mp + 1284
2 Flutter 0x671130 InternalFlutterGpu_Texture_AsImage + 701964
3 Flutter 0x60beb0 InternalFlutterGpu_Texture_AsImage + 287628
4 Flutter 0x6acbf4 InternalFlutterGpu_Texture_AsImage + 946384
5 Flutter 0x670afc InternalFlutterGpu_Texture_AsImage + 700376
6 libsystem_pthread.dylib 0x3338 _pthread_start + 116
7 libsystem_pthread.dylib 0x1938 thread_start + 8

DartWorker
0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x9bf0 _pthread_cond_wait$VARIANT$mp + 1284
2 Flutter 0x671130 InternalFlutterGpu_Texture_AsImage + 701964
3 Flutter 0x6acbc0 InternalFlutterGpu_Texture_AsImage + 946332
4 Flutter 0x670afc InternalFlutterGpu_Texture_AsImage + 700376
5 libsystem_pthread.dylib 0x3338 _pthread_start + 116
6 libsystem_pthread.dylib 0x1938 thread_start + 8

JavaScriptCore libpas scavenger
0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x9bc4 _pthread_cond_wait$VARIANT$mp + 1240
2 JavaScriptCore 0xe5028 + 960
3 libsystem_pthread.dylib 0x3338 _pthread_start + 116
4 libsystem_pthread.dylib 0x1938 thread_start + 8

Thread
0 libsystem_kernel.dylib 0x1014 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1e4c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x192c start_wqthread + 8

DartWorker
0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x9bf0 _pthread_cond_wait$VARIANT$mp + 1284
2 Flutter 0x671130 InternalFlutterGpu_Texture_AsImage + 701964
3 Flutter 0x6acbc0 InternalFlutterGpu_Texture_AsImage + 946332
4 Flutter 0x670afc InternalFlutterGpu_Texture_AsImage + 700376
5 libsystem_pthread.dylib 0x3338 _pthread_start + 116
6 libsystem_pthread.dylib 0x1938 thread_start + 8`

Hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions