From 23333c074a2be2786ca2e659edbbdf438221a45f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 27 Dec 2016 10:42:41 +0100 Subject: [PATCH] Fix NPE regression in version 0.44 --- app/src/main/java/com/termux/app/TermuxActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/termux/app/TermuxActivity.java b/app/src/main/java/com/termux/app/TermuxActivity.java index d1d23387..b11d37db 100644 --- a/app/src/main/java/com/termux/app/TermuxActivity.java +++ b/app/src/main/java/com/termux/app/TermuxActivity.java @@ -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 {