X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/6d5cfa32e2d4b7e2038872ab1e526c4d6d608215..6f7350d031585e47172a52ffd2892b5aceb956b6:/src/main/java/org/asamk/signal/Main.java diff --git a/src/main/java/org/asamk/signal/Main.java b/src/main/java/org/asamk/signal/Main.java index e5335b28..e1343fbf 100644 --- a/src/main/java/org/asamk/signal/Main.java +++ b/src/main/java/org/asamk/signal/Main.java @@ -19,7 +19,6 @@ package org.asamk.signal; import net.sourceforge.argparse4j.ArgumentParsers; import net.sourceforge.argparse4j.impl.Arguments; import net.sourceforge.argparse4j.inf.*; -import org.apache.http.util.TextUtils; import org.asamk.Signal; import org.asamk.signal.commands.*; import org.asamk.signal.manager.BaseConfig; @@ -35,6 +34,8 @@ import java.io.File; import java.security.Security; import java.util.Map; +import static org.whispersystems.signalservice.internal.util.Util.isEmpty; + public class Main { public static void main(String[] args) { @@ -82,7 +83,7 @@ public class Main { } } else { String dataPath = ns.getString("config"); - if (TextUtils.isEmpty(dataPath)) { + if (isEmpty(dataPath)) { dataPath = getDefaultDataPath(); }