Bläddra i källkod

Fixed crash when adding/renaming files during hot compile

Brian Fiete 5 år sedan
förälder
incheckning
c08d1161fb
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;
 									}
 								}