Merge "Make sure path is not NULL to avoid fatal exception."

This commit is contained in:
Jeff Sharkey 2015-12-03 17:39:39 +00:00 committed by Gerrit Code Review
commit e0e5bfeb3c

View file

@ -283,8 +283,8 @@ void VolumeManager::handleBlockEvent(NetlinkEvent *evt) {
evt->dump(); evt->dump();
} }
std::string eventPath(evt->findParam("DEVPATH")); std::string eventPath(evt->findParam("DEVPATH")?evt->findParam("DEVPATH"):"");
std::string devType(evt->findParam("DEVTYPE")); std::string devType(evt->findParam("DEVTYPE")?evt->findParam("DEVTYPE"):"");
if (devType != "disk") return; if (devType != "disk") return;