mirror of
https://github.com/Fox2Code/FoxMagiskModuleManager
synced 2024-10-30 15:20:15 +00:00
Fix possible NullPointerException if install failed. (Fix #167)
This commit is contained in:
parent
2c5a552221
commit
392409be45
@ -360,7 +360,7 @@ public class InstallerActivity extends CompatActivity {
|
||||
installExecutable = this.extractInstallScript("anykernel3_installer.sh");
|
||||
if (installExecutable == null) {
|
||||
this.setInstallStateFinished(false,
|
||||
"! Failed to extract AnyKernel3 install script", null);
|
||||
"! Failed to extract AnyKernel3 install script", "");
|
||||
return;
|
||||
}
|
||||
// "unshare -m" is needed to force mount namespace isolation.
|
||||
@ -379,7 +379,7 @@ public class InstallerActivity extends CompatActivity {
|
||||
installExecutable = this.extractInstallScript("module_installer_compat.sh");
|
||||
if (installExecutable == null) {
|
||||
this.setInstallStateFinished(false,
|
||||
"! Failed to extract Magisk module install script", null);
|
||||
"! Failed to extract Magisk module install script", "");
|
||||
return;
|
||||
}
|
||||
installCommand = ASH + " \"" +
|
||||
@ -387,7 +387,7 @@ public class InstallerActivity extends CompatActivity {
|
||||
" 3 1 \"" + file.getAbsolutePath() + "\"";
|
||||
} else {
|
||||
this.setInstallStateFinished(false,
|
||||
"! Zip file is not a valid Magisk module or AnyKernel3 zip!", null);
|
||||
"! Zip file is not a valid Magisk module or AnyKernel3 zip!", "");
|
||||
return;
|
||||
}
|
||||
installerMonitor = new InstallerMonitor(installExecutable);
|
||||
@ -697,7 +697,7 @@ public class InstallerActivity extends CompatActivity {
|
||||
|
||||
if (message != null && !message.isEmpty())
|
||||
this.installerTerminal.addLine(message);
|
||||
if (!optionalLink.isEmpty()) {
|
||||
if (optionalLink != null && !optionalLink.isEmpty()) {
|
||||
this.setActionBarExtraMenuButton(ActionButtonType.supportIconForUrl(optionalLink),
|
||||
menu -> {
|
||||
IntentHelper.openUrl(this, optionalLink);
|
||||
|
Loading…
Reference in New Issue
Block a user