oracle / oracle/pushiomanager-react-native

NullPointerException when using @oracle/react-native-pushiomanager on Android

Open
#72 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
19
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Issue Description:
We are encountering a NullPointerException when using the @oracle/react-native-pushiomanager module, version ^6.52.2, in our React Native application. This issue is specific to Android devices and may potentially be related to in-app messages.

The error stack trace is as follows:
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at com.pushio.manager.r0.F(SourceFile:1) at com.pushio.manager.c0.o(SourceFile:1) at com.pushio.manager.c0.e(SourceFile:1) at com.pushio.manager.c0$a$a.run(Unknown Source:9) at java.lang.Thread.run(Thread.java:1012)

The error seems to be occurring during the handling of a bitmap operation inside the PushIOManager.

Steps to Reproduce:
Install @oracle/react-native-pushiomanager version ^6.52.2.
Set up in-app messaging for the Android platform.
Trigger a push notification or an in-app message on an Android device.
Observe the crash with the aforementioned stack trace.
Expected Behavior:
The push notification or in-app message should be displayed without causing a crash.

Actual Behavior:
The app crashes with a NullPointerException when trying to access a Bitmap object during push or in-app message handling.

Affected Environment:
Library Version: @oracle/react-native-pushiomanager@^6.52.2
Platform: Android
React Native Version: 0.73.8
Device Information: Occurs across multiple Android devices.
Additional Information: We suspect that the issue might be related to handling in-app messages, but further investigation is needed to confirm this.

Please advise if there are any known fixes or workarounds for this issue.
Could this be related to improper bitmap handling in in-app messages?
Any guidance on this matter would be greatly appreciated.

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided Android stack trace and reproduce the crash using @oracle/react-native-pushiomanager ^6.52.2 with in-app messaging enabled. Investigate the PushIOManager bitmap handling described in the trace and verify the result across the reported Android devices; done means push notifications and in-app messages no longer crash the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.