packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

Null check operator used on a null value at PdfController._loadDocument(pdf_controller.dart:125)

Open alod2019 opened this issue 2 years ago • 2 comments

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

alod2019 avatar Jun 23 '23 10:06 alod2019

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>

levyhnunes avatar Nov 17 '23 11:11 levyhnunes

is there any update?

flexboni avatar Apr 16 '24 03:04 flexboni