Don't save if username is null

This commit is contained in:
AsamK 2016-04-16 15:07:49 +02:00
parent 15568512b1
commit 46befdd638

View file

@ -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)