diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp index 1a8d475b6d..08f6d5ed1e 100644 --- a/src/kits/storage/PathMonitor.cpp +++ b/src/kits/storage/PathMonitor.cpp @@ -1462,7 +1462,7 @@ PathHandler::_EntryCreated(const NotOwningEntryRef& entryRef, if (directory == NULL) { // We're out of sync with reality. if (!dryRun) { - if (Entry* nodeEntry = directory->FirstNodeEntry()) { + if (Entry* nodeEntry = directoryNode->FirstNodeEntry()) { // remove the entry that is in the way and re-add the proper // entry NotOwningEntryRef directoryEntryRef = nodeEntry->EntryRef();