mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Don't save if username is null
This commit is contained in:
parent
15568512b1
commit
46befdd638
1 changed files with 3 additions and 0 deletions
|
@ -180,6 +180,9 @@ class Manager implements Signal {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void save() {
|
private void save() {
|
||||||
|
if (username == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ObjectNode rootNode = jsonProcessot.createObjectNode();
|
ObjectNode rootNode = jsonProcessot.createObjectNode();
|
||||||
rootNode.put("username", username)
|
rootNode.put("username", username)
|
||||||
.put("deviceId", deviceId)
|
.put("deviceId", deviceId)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue