mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
fixed getContactName Exception handling
This commit is contained in:
parent
d88c65067c
commit
3a26c74ae4
1 changed files with 6 additions and 1 deletions
|
@ -149,7 +149,12 @@ public class DbusSignalImpl implements Signal {
|
||||||
// the profile name
|
// the profile name
|
||||||
@Override
|
@Override
|
||||||
public String getContactName(final String number) {
|
public String getContactName(final String number) {
|
||||||
String name = m.getContactOrProfileName(number);
|
String name="";
|
||||||
|
try {
|
||||||
|
name = m.getContactOrProfileName(number);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new Error.InvalidNumber(e.getMessage());
|
||||||
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue