Commit d136d515 authored by Roumen Petrov's avatar Roumen Petrov
Browse files

avoid crash in remote interface if action is erroneously set to null

parent a498a611
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment