diff --git a/app/src/full/java/com/topjohnwu/magisk/container/Module.java b/app/src/full/java/com/topjohnwu/magisk/container/Module.java index 7bf908651..04b040b45 100644 --- a/app/src/full/java/com/topjohnwu/magisk/container/Module.java +++ b/app/src/full/java/com/topjohnwu/magisk/container/Module.java @@ -18,12 +18,12 @@ public class Module extends BaseModule { mDisableFile = new SuFile(path, "disable"); mUpdateFile = new SuFile(path, "update"); - if (getId() == null) { + if (getId().isEmpty()) { int sep = path.lastIndexOf('/'); setId(path.substring(sep + 1)); } - if (getName() == null) { + if (getName().isEmpty()) { setName(getId()); }