Fix NPE regression in version 0.44

This commit is contained in:
Fredrik Fornwall
2016-12-27 10:42:41 +01:00
parent f11644fa51
commit 23333c074a

View File

@@ -523,7 +523,7 @@ public final class TermuxActivity extends Activity implements ServiceConnection
} }
} else { } else {
Intent i = getIntent(); Intent i = getIntent();
if (i != null && i.getAction().equals(Intent.ACTION_RUN)) { if (i != null && Intent.ACTION_RUN.equals(i.getAction())) {
// Android 7.1 app shortcut from res/xml/shortcuts.xml. // Android 7.1 app shortcut from res/xml/shortcuts.xml.
addNewSession(false, null); addNewSession(false, null);
} else { } else {