Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
termapps
termoneplus
Commits
d136d515
Commit
d136d515
authored
Mar 14, 2018
by
Roumen Petrov
Browse files
avoid crash in remote interface if action is erroneously set to null
parent
a498a611
Changes
1
Hide whitespace changes
Inline
Side-by-side
term/src/main/java/jackpal/androidterm/RemoteInterface.java
View file @
d136d515
...
...
@@ -111,7 +111,8 @@ protected void handleIntent() {
Intent
myIntent
=
getIntent
();
String
action
=
myIntent
.
getAction
();
Log
.
i
(
TermDebug
.
LOG_TAG
,
"RemoteInterface action: "
+
action
);
if
(
action
.
equals
(
Intent
.
ACTION_SEND
)
if
(
action
!=
null
&&
action
.
equals
(
Intent
.
ACTION_SEND
)
&&
myIntent
.
hasExtra
(
Intent
.
EXTRA_STREAM
))
{
/* "permission.RUN_SCRIPT" not required as this is merely opening a new window. */
Object
extraStream
=
myIntent
.
getExtras
().
get
(
Intent
.
EXTRA_STREAM
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment