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

checkCommands: Null check operator used on a null value #484

Closed
2 of 6 tasks
jagged91 opened this issue Jun 18, 2021 · 4 comments
Closed
2 of 6 tasks

checkCommands: Null check operator used on a null value #484

jagged91 opened this issue Jun 18, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@jagged91
Copy link

jagged91 commented Jun 18, 2021

Describe the bug
When using the giphy command, the message '/giphy ' gets sent rather than showing the giphy preview as in previous versions. Exiting the chat screen and returning will show the giphy preview as expected.

What package are you using? What version?
stream_chat_flutter: ^2.0.0-nullsafety.7

What platform is it about?

  • Android
  • iOS
  • Web
  • Windows
  • MacOS
  • Linux

To Reproduce
Steps to reproduce the behavior:

  1. Use the giphy chat command
  2. Type a search term
  3. Tap the search icon
  4. See that instead of the preview, you see the text '/giphy ' rather than the preview.

Expected behavior
The giphy preview should show as soon as the search icon is tapped.

**Logs **

flutter: Null check operator used on a null value

#0      MessageInputState._checkCommands
package:stream_chat_flutter/src/message_input.dart:799
#1      MessageInputState._onChanged.<anonymous closure>
package:stream_chat_flutter/src/message_input.dart:721
#2      _rootRun (dart:async/zone.dart:1346:47)
#3      _CustomZone.run (dart:async/zone.dart:1258:19)
#4      _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
#5      _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
#6      _rootRun (dart:async/zone.dart:1354:13)
#7      _CustomZone.run (dart:async/zone.dart:1258:19)
#8      _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1186:23)
#9      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#10     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:395:19)
@jagged91 jagged91 added the bug Something isn't working label Jun 18, 2021
@deven98
Copy link
Contributor

deven98 commented Jun 21, 2021

Hey @jgadsby,

Thanks for reporting.

I will check the behaviour on the version you mentioned and get back to you shortly.

Thanks!

@imtoori
Copy link
Contributor

imtoori commented Jun 23, 2021

fixed in the develop branch :) you'll find it in the next release

@imtoori imtoori closed this as completed Jun 23, 2021
@jagged91
Copy link
Author

Sweet! When are you planning on releasing this?

@imtoori
Copy link
Contributor

imtoori commented Jun 24, 2021

probably next week
we're releasing a new version of the stream_chat package with a lot of improvements and some breaking changes
we need a couple of days to write changelogs and some information on how to migrate

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

3 participants