浏览代码

Fixed crash when adding/renaming files during hot compile

Brian Fiete 5 年之前
父节点
当前提交
c08d1161fb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      IDE/src/IDEApp.bf

+ 2 - 1
IDE/src/IDEApp.bf

@@ -8225,7 +8225,8 @@ namespace IDE
 									if (!mWorkspace.mCompileInstanceList.IsEmpty)
 									{
 										let compileInstance = mWorkspace.GetProjectSourceCompileInstance(projectSource, 0);
-										sourceHash = compileInstance.mSourceHash;
+										if (compileInstance != null)
+											sourceHash = compileInstance.mSourceHash;
 									}
 								}