Skip to content

Commit 9259bf7

Browse files
fix: ensure that intent.getAction() is not null
1 parent a58a3ee commit 9259bf7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class MainActivity extends ReactActivity {
119119
protected Bundle getLaunchOptions() {
120120
Bundle initialProperties = new Bundle();
121121
Intent intent = this.getPlainActivity().getIntent();
122-
if (intent == null) {
122+
if (intent == null || intent.getAction() == null) {
123123
return initialProperties;
124124
}
125125
switch (intent.getAction()) {

android/src/main/java/com/hoxfon/react/RNTwilioVoice/TwilioVoiceModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void onHostResume() {
147147
registerReceiver();
148148

149149
Intent intent = getCurrentActivity().getIntent();
150-
if (intent == null) {
150+
if (intent == null || intent.getAction() == null) {
151151
return;
152152
}
153153
int currentCallInviteIntent = intent.hashCode();

0 commit comments

Comments
 (0)