EdsonBueno / infinite_scroll_pagination

Flutter package to help you lazily load and display pages of items as the user scrolls down your screen.
https://pub.dev/packages/infinite_scroll_pagination
MIT License
625 stars 213 forks source link

Fatal Exception: Null check operator used on a null value #330

Closed matmicro closed 3 months ago

matmicro commented 3 months ago

Version: 4.0.0

Fatal Exception: FlutterError
Null check operator used on a null value
          Fatal Exception: FlutterError
0  ???                            0x0 PagingController.notifyStatusListeners + 170 (paging_controller.dart:170)
1  ???                            0x0 PagingController.value= + 94 (paging_controller.dart:94)
2  ???                            0x0 PagingController.appendPage + 105 (paging_controller.dart:105)
3  ???                            0x0 ForumCategoryPage._fetchPage + 41 (forum_category_page.dart:41)

File: /lib/src/core/paging_controller.dart

Code to fix: if (_statusListeners!.isEmpty) {

Is it possible to push a fix for this ? I am facing regularly this issue, almost on iOS.

matmicro commented 3 months ago

It looks already fix in dev branch with this commit: https://github.com/EdsonBueno/infinite_scroll_pagination/commit/0c4e3e5ee62f52df9ed21f1e7abbfa620631cbc8

Any chance to merge asap in master and release a new version ?

Regards

clragon commented 3 months ago

A new release is scheduled for whenever Edson Bueno finds time. We cannot guarantee any timeline. Thank you.

clragon commented 3 months ago

Please do not ping Edson Bueno, this does not accelerate the process. I have already asked him to make a release.