Skip to content

Set default keyboard state#6101

Merged
piaskowyk merged 1 commit intomainfrom
@piaskowyk/set-default-state
Jun 11, 2024
Merged

Set default keyboard state#6101
piaskowyk merged 1 commit intomainfrom
@piaskowyk/set-default-state

Conversation

@piaskowyk
Copy link
Member

Summary

This PR addresses a requested issue that randomly occurs on some Android devices:

java.lang.NullPointerException: Attempt to invoke virtual method 'int com.swmansion.reanimated.keyboard.KeyboardState.asInt()' on a null object reference
        at com.swmansion.reanimated.keyboard.KeyboardAnimationManager.notifyAboutKeyboardChange(KeyboardAnimationManager.java:45)

This NullPointerException was likely caused by the lack of a default value for the mState field.

@piaskowyk piaskowyk added this pull request to the merge queue Jun 11, 2024
Merged via the queue into main with commit 9d6b45f Jun 11, 2024
@piaskowyk piaskowyk deleted the @piaskowyk/set-default-state branch June 11, 2024 11:11
r0h0gg6 pushed a commit to r0h0gg6/react-native-reanimated that referenced this pull request Jul 28, 2025
## Summary

This PR addresses a requested issue that randomly occurs on some Android
devices:
```
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.swmansion.reanimated.keyboard.KeyboardState.asInt()' on a null object reference
        at com.swmansion.reanimated.keyboard.KeyboardAnimationManager.notifyAboutKeyboardChange(KeyboardAnimationManager.java:45)
```
This NullPointerException was likely caused by the lack of a default
value for the `mState` field.
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