Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add another mounted check #1

Merged
merged 1 commit into from
Nov 20, 2020
Merged

fix: Add another mounted check #1

merged 1 commit into from
Nov 20, 2020

Conversation

krille-chan
Copy link
Collaborator

We've got this in the app:

11-16 13:08:12.526 30218 30261 E flutter : [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method 'markNeedsBuild' was called on null.
11-16 13:08:12.526 30218 30261 E flutter : Receiver: null
11-16 13:08:12.526 30218 30261 E flutter : Tried calling: markNeedsBuild()
11-16 13:08:12.526 30218 30261 E flutter : #0 State.setState (package:flutter/src/widgets/framework.dart:1264)
11-16 13:08:12.526 30218 30261 E flutter : #1 _CodeBlockState.initState.. (package:flutter_matrix_html/code_block.dart:62)
11-16 13:08:12.526 30218 30261 E flutter : #2 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117)
11-16 13:08:12.526 30218 30261 E flutter : #3 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1063)
11-16 13:08:12.526 30218 30261 E flutter : #4 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:971)
11-16 13:08:12.526 30218 30261 E flutter : #5 _rootRun (dart:async/zone.dart:1190)
11-16 13:08:12.526 30218 30261 E flutter : #6 _CustomZone.run (dart:async/zone.dart:1093)
11-16 13:08:12.526 30218 30261 E flutter : #7 _CustomZone.runGuarded (dart:async/zone.dart:997)
11-16 13:08:12.526 30218 30261 E flutter : #8 _invoke (dart:ui/hooks.dart:251)
11-16 13:08:12.526 30218 30261 E flutter : #9 _drawFrame (dart:ui/hooks.dart:209)

So I guess we need a mounted check there too.

We've got this in the app:

11-16 13:08:12.526 30218 30261 E flutter : [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method 'markNeedsBuild' was called on null.
11-16 13:08:12.526 30218 30261 E flutter : Receiver: null
11-16 13:08:12.526 30218 30261 E flutter : Tried calling: markNeedsBuild()
11-16 13:08:12.526 30218 30261 E flutter : #0      State.setState (package:flutter/src/widgets/framework.dart:1264)
11-16 13:08:12.526 30218 30261 E flutter : #1      _CodeBlockState.initState.<anonymous closure>.<anonymous closure> (package:flutter_matrix_html/code_block.dart:62)
11-16 13:08:12.526 30218 30261 E flutter : #2      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117)
11-16 13:08:12.526 30218 30261 E flutter : #3      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1063)
11-16 13:08:12.526 30218 30261 E flutter : #4      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:971)
11-16 13:08:12.526 30218 30261 E flutter : #5      _rootRun (dart:async/zone.dart:1190)
11-16 13:08:12.526 30218 30261 E flutter : #6      _CustomZone.run (dart:async/zone.dart:1093)
11-16 13:08:12.526 30218 30261 E flutter : #7      _CustomZone.runGuarded (dart:async/zone.dart:997)
11-16 13:08:12.526 30218 30261 E flutter : #8      _invoke (dart:ui/hooks.dart:251)
11-16 13:08:12.526 30218 30261 E flutter : #9      _drawFrame (dart:ui/hooks.dart:209)


So I guess we need a mounted check there too.
@Sorunome Sorunome merged commit 4638f6b into Sorunome:master Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants