Skip to content

Commit e4d836a

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "servicemanager: avoid segfault on null manifest."
2 parents e13f284 + 97d1d45 commit e4d836a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmds/servicemanager/ServiceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static bool isVintfDeclared(const std::string& name) {
5050
vintf::VintfObject::GetDeviceHalManifest(),
5151
vintf::VintfObject::GetFrameworkHalManifest()
5252
}) {
53-
if (manifest->hasAidlInstance(package, iface, instance)) {
53+
if (manifest != nullptr && manifest->hasAidlInstance(package, iface, instance)) {
5454
return true;
5555
}
5656
}

0 commit comments

Comments
 (0)