From c71a35bdd5f115d82a0c35b59ab4f6b9077c5588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 22 Jan 2014 18:48:54 +0100 Subject: [PATCH] PathMonitor: check for NULL before dereferencing. * should fix #10277. --- src/kits/storage/PathMonitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp index 03c3356f3a..324270ffe2 100644 --- a/src/kits/storage/PathMonitor.cpp +++ b/src/kits/storage/PathMonitor.cpp @@ -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