chimon2000 / chimon2000/remote_state

[Bug]: RemoteState.Guard will return success for a null value in release mode and error in debug mode

Open
#19 2 comments 1 reaction 1 assignee Claimed by @chimon2000 View on GitHub
bug
Dominant language
Dart
Stars
14
Forks
4
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
If you pass a future to RemoteState.Guard that returns a null value, in release mode it'll go through as a success but in debug mode the assert that the value can't be null will be prevent it and an error state is returned.

**Expected behavior**
An error state should be returned for for both instances or a different state might need to be addressed.

**Screenshots**
N/A

**Smartphone (please complete the following information):**
- No device specific

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.