Skip to content

fix: Check null before use objects and add runOnExecutor#26

Merged
fmorau merged 2 commits into
devfrom
bug/m-2740/android--app-stuck-and-then-crash
Apr 28, 2026
Merged

fix: Check null before use objects and add runOnExecutor#26
fmorau merged 2 commits into
devfrom
bug/m-2740/android--app-stuck-and-then-crash

Conversation

@iosDeveloperDenis

Copy link
Copy Markdown

M-2740 Android: app stuck and then crashes, when finish a group call

  1. Fix null pointer access, prevent use null objects when observe voice
  2. Prevent using multithreaded when observe voice

@iosDeveloperDenis iosDeveloperDenis self-assigned this Apr 15, 2026
@fmorau

fmorau commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

@codex review

@fmorau

fmorau commented Apr 15, 2026

Copy link
Copy Markdown
Collaborator

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an Android crash/hang when finishing a group call by hardening voice-activity observation against null peer/connection objects and adjusting threading to run voice stats polling on the module’s single-thread executor.

Changes:

  • Added null checks in observeVoiceActivity() for PeerConnectionObserver and PeerConnection before use.
  • Moved voice stats polling work to ThreadUtils.runOnExecutor() from the Timer thread.
  • Prevented potential NPE in peerConnectionDispose() by guarding pco.dispose().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
Comment thread android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b1128292d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
Comment thread android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
Comment thread android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java
@fmorau fmorau merged commit a6b0a6e into dev Apr 28, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants