mirror of https://github.com/buggins/dlangide.git
Prevent crashing if we create the project while current workspace is null.
This commit is contained in:
parent
af8babdf1b
commit
00e17a8d3b
|
@ -379,8 +379,10 @@ class Project : WorkspaceItem {
|
||||||
super(fname);
|
super(fname);
|
||||||
_workspace = ws;
|
_workspace = ws;
|
||||||
|
|
||||||
|
if (_workspace) {
|
||||||
foreach(obj; _workspace.includePath.array)
|
foreach(obj; _workspace.includePath.array)
|
||||||
includePath ~= obj.str;
|
includePath ~= obj.str;
|
||||||
|
}
|
||||||
|
|
||||||
_items = new ProjectFolder(fname);
|
_items = new ProjectFolder(fname);
|
||||||
_dependencyVersion = dependencyVersion;
|
_dependencyVersion = dependencyVersion;
|
||||||
|
|
Loading…
Reference in New Issue