]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/Manager.java
Set user-agent null if PROJECT_NAME is null
[signal-cli] / src / main / java / org / asamk / signal / Manager.java
index a4a9c37a4bd5f1fceea8f8d07ca7cc0e3a242f60..113fb0cc58838c8aca4ccfd2d9c06e40aa314e38 100644 (file)
@@ -58,7 +58,7 @@ class Manager implements Signal {
 
     public final static String PROJECT_NAME = Manager.class.getPackage().getImplementationTitle();
     public final static String PROJECT_VERSION = Manager.class.getPackage().getImplementationVersion();
-    private final static String USER_AGENT = PROJECT_NAME + " " + PROJECT_VERSION;
+    private final static String USER_AGENT = PROJECT_NAME == null ? null : PROJECT_NAME + " " + PROJECT_VERSION;
 
     private final static int PREKEY_MINIMUM_COUNT = 20;
     private static final int PREKEY_BATCH_SIZE = 100;