Skip to content

Commit ff4a17a

Browse files
Steven Morelandandroid-build-merger
authored andcommitted
Merge "servicemanager: avoid segfault on null manifest." am: e4d836a am: 6a52945
am: 0ffc43e Change-Id: Ic980783663e47228e1a82eaf390efa2e13e00306
2 parents ce8bdbd + 0ffc43e commit ff4a17a

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)