Merge pull request #198 from drug007/master

Prevent crashing if we create the project while current workspace is …
This commit is contained in:
Vadim Lopatin 2017-03-13 14:30:05 +04:00 committed by GitHub
commit b86d27a6c3
1 changed files with 4 additions and 2 deletions

View File

@ -379,8 +379,10 @@ class Project : WorkspaceItem {
super(fname);
_workspace = ws;
foreach(obj; _workspace.includePath.array)
includePath ~= obj.str;
if (_workspace) {
foreach(obj; _workspace.includePath.array)
includePath ~= obj.str;
}
_items = new ProjectFolder(fname);
_dependencyVersion = dependencyVersion;