Call service only if we got it

This commit is contained in:
Pierre-Hugues Husson 2019-03-07 22:28:01 +01:00
parent 69f230df9c
commit 5d34610de1
1 changed files with 2 additions and 2 deletions

View File

@ -7,6 +7,6 @@ using ::android::sp;
int main(int argc, char **argv) {
auto svc = IRadio::getService(argv[1]);
svc->setSmsFwkReady(1);
if(svc != nullptr)
svc->setSmsFwkReady(1);
}