logic: crash fixes

<description>
This commit is contained in:
Eberhard Graether
2015-08-07 00:17:41 +02:00
parent 30b5abd672
commit 30c941fcf8
3 changed files with 27 additions and 15 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ std::set<FilePath> Storage::getDependingFilePathsAndRemoveFileNodes(const std::s
{
Node* fileNode = findFileNode(filePath);
if (!fileNode->getComponent<TokenComponentFilePath>() ||
if (!fileNode || !fileNode->getComponent<TokenComponentFilePath>() ||
fileNode->getComponent<TokenComponentFilePath>()->getFilePath() != filePath)
{
LOG_ERROR("Node is not resolving to the same file.");