mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-04 05:00:39 +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;
|
this.relay = null;
|
||||||
}
|
}
|
||||||
if (this.source != null) {
|
if (this.source != null) {
|
||||||
|
String name;
|
||||||
try {
|
try {
|
||||||
this.sourceName = m.getContactOrProfileName(this.source);
|
name = m.getContactOrProfileName(this.source);
|
||||||
} catch (InvalidNumberException e) {}
|
} catch (InvalidNumberException e) {
|
||||||
|
name = null;
|
||||||
|
}
|
||||||
|
this.sourceName = name;
|
||||||
} else {
|
} else {
|
||||||
this.sourceName = null;
|
this.sourceName = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue