PathMonitor: check for NULL before dereferencing.

* should fix #10277.
This commit is contained in:
Jérôme Duval 2014-01-22 18:48:54 +01:00
parent fd9ceef841
commit c71a35bdd5

View File

@ -1496,7 +1496,7 @@ PathHandler::_EntryCreated(const NotOwningEntryRef& entryRef,
// Check, if there's a colliding entry.
if (Entry* nodeEntry = directory->FindEntry(entryRef.name)) {
Node* entryNode = nodeEntry->Node();
if (entryNode->NodeRef() == nodeRef)
if (entryNode != NULL && entryNode->NodeRef() == nodeRef)
return true;
// We're out of sync with reality -- the new entry refers to a different