mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
avoid sourceName might not have been initialized
This commit is contained in:
parent
f716fb64bf
commit
72e89cd0fc
1 changed files with 6 additions and 2 deletions
|
@ -68,9 +68,13 @@ public class JsonMessageEnvelope {
|
|||
this.relay = null;
|
||||
}
|
||||
if (this.source != null) {
|
||||
String name;
|
||||
try {
|
||||
this.sourceName = m.getContactOrProfileName(this.source);
|
||||
} catch (InvalidNumberException e) {}
|
||||
name = m.getContactOrProfileName(this.source);
|
||||
} catch (InvalidNumberException e) {
|
||||
name = null;
|
||||
}
|
||||
this.sourceName = name;
|
||||
} else {
|
||||
this.sourceName = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue