fixed getContactName Exception handling

This commit is contained in:
Adimarantis 2021-02-28 21:57:55 +01:00
parent d88c65067c
commit 3a26c74ae4

View file

@ -149,7 +149,12 @@ public class DbusSignalImpl implements Signal {
// the profile name
@Override
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;
}