Null check operator used on a null value at PdfController._loadDocument(pdf_controller.dart:125)
Describe the bug From Firebase Crashlytics:
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value at PdfController._loadDocument(pdf_controller.dart:125)
To Reproduce Probably is happening when PdfController.dispose() is called early when a document is not fully loaded, e.g. when the controller is placed to a StatefullWidget and is disposed by the widget's dispose()
Expected behavior No crash
The same error is happening to me, here's the stack trace:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value #0 PdfControllerPinch._loadDocument (package:pdfx/src/viewer/pinch/pdf_controller_pinch.dart:99:13) <asynchronous suspension>
is there any update?