From 46befdd638dba0bfa20fdfdb389692cb106630dd Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 16 Apr 2016 15:07:49 +0200 Subject: [PATCH] Don't save if username is null --- src/main/java/org/asamk/signal/Manager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/asamk/signal/Manager.java b/src/main/java/org/asamk/signal/Manager.java index 3931f3e3..be94f7f5 100644 --- a/src/main/java/org/asamk/signal/Manager.java +++ b/src/main/java/org/asamk/signal/Manager.java @@ -180,6 +180,9 @@ class Manager implements Signal { } private void save() { + if (username == null) { + return; + } ObjectNode rootNode = jsonProcessot.createObjectNode(); rootNode.put("username", username) .put("deviceId", deviceId)