Commit e5be8b7f authored by topjohnwu's avatar topjohnwu

Prevent weird Magisk version number crashing app

parent 906ae730
......@@ -167,10 +167,10 @@ public class MagiskFragment extends Fragment {
private void updateMagiskVersion() {
List<String> ret = Shell.sh("getprop magisk.version");
if (ret.get(0).isEmpty()) {
magiskVersion = -1;
} else {
try {
magiskVersion = Integer.parseInt(ret.get(0));
} catch (NumberFormatException e) {
magiskVersion = -1;
}
if (magiskVersion == -1) {
......
Markdown is supported
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