Call service only if we got it
This commit is contained in:
parent
69f230df9c
commit
5d34610de1
@ -7,6 +7,6 @@ using ::android::sp;
|
|||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
auto svc = IRadio::getService(argv[1]);
|
auto svc = IRadio::getService(argv[1]);
|
||||||
|
if(svc != nullptr)
|
||||||
svc->setSmsFwkReady(1);
|
svc->setSmsFwkReady(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user