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

Null check operator used on a null value #111

Closed
arbazKnarkz opened this issue Aug 17, 2021 · 1 comment
Closed

Null check operator used on a null value #111

arbazKnarkz opened this issue Aug 17, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@arbazKnarkz
Copy link

arbazKnarkz commented Aug 17, 2021

Describe the bug
html_editor_enhanced: ^2.2.0
shortcuts.dart

Line 359:      final BuildContext primaryContext = primaryFocus!.context!;
======== Exception caught by services library ======================================================
The following _CastError was thrown during a platform message callback:
Null check operator used on a null value

When the exception was thrown, this was the stack: 
#0      ShortcutManager.handleKeypress (package:flutter/src/widgets/shortcuts.dart:359:64)
#1      _ShortcutsState._handleOnKey (package:flutter/src/widgets/shortcuts.dart:708:20)
#2      FocusManager._handleRawKeyEvent (package:flutter/src/widgets/focus_manager.dart:1678:43)
#3      RawKeyboard._handleKeyEvent (package:flutter/src/services/raw_keyboard.dart:682:69)
#4      BasicMessageChannel.setMessageHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:73:49)
...
====================================================================================================

To Reproduce
Steps to reproduce the behavior:

  1. Insert some HTML text
  2. Then try to add some text from keyboard
  3. try to insert space from keyboard

Device:
IOS emulator 14.5

@arbazKnarkz arbazKnarkz added the bug Something isn't working label Aug 17, 2021
@arbazKnarkz arbazKnarkz changed the title [BUG] Null check operator used on a null value Aug 17, 2021
@tneotia
Copy link
Owner

tneotia commented Aug 18, 2021

This looks like an internal Flutter error rather than from the plugin itself

@tneotia tneotia closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants