Skip to content

Commit c818045

Browse files
fix: ensure that intent.getAction() is not null
1 parent 2e2df83 commit c818045

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
@@ -120,7 +120,7 @@ public class MainActivity extends ReactActivity {
120120
protected Bundle getLaunchOptions() {
121121
Bundle initialProperties = new Bundle();
122122
Intent intent = this.getPlainActivity().getIntent();
123-
if (intent == null) {
123+
if (intent == null || intent.getAction() == null) {
124124
return initialProperties;
125125
}
126126
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)