Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Commit

Permalink
Fix NullRef caused by Sources response
Browse files Browse the repository at this point in the history
  • Loading branch information
troydai committed Oct 19, 2015
1 parent 03e675e commit a383e20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -21,6 +21,7 @@ public DesignTimeHostCompiler(IApplicationShutdown shutdown, Stream stream)
_queue.ProjectCompiled += OnProjectCompiled;
_queue.ProjectsInitialized += ProjectContextsInitialized;
_queue.ProjectChanged += _ => { };
_queue.ProjectSources += _ => { };
_queue.Error += OnError;

_queue.Closed += OnClosed;
Expand Down
7 changes: 5 additions & 2 deletions src/Microsoft.Dnx.Compilation.DesignTime/ProcessingQueue.cs
Expand Up @@ -98,8 +98,11 @@ private void ReceiveMessages()
// "MessageType": "Sources",
// "Files": [],
//}
var files = obj.ValueAsStringArray("Files");
ProjectSources(files);
if (ProjectSources != null)
{
var files = obj.ValueAsStringArray("Files");
ProjectSources(files);
}
break;
case "ProjectContexts":
//{
Expand Down

0 comments on commit a383e20

Please sign in to comment.