mirror of https://github.com/termux/termux-app
Fix NPE regression in version 0.44
This commit is contained in:
parent
f11644fa51
commit
23333c074a
|
@ -523,7 +523,7 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
|||
}
|
||||
} else {
|
||||
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.
|
||||
addNewSession(false, null);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue