mirror of https://github.com/buggins/dlangide.git
Merge pull request #198 from drug007/master
Prevent crashing if we create the project while current workspace is …
This commit is contained in:
commit
b86d27a6c3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue