dub projs, add default config when config arr is empty

This commit is contained in:
Basile Burg 2017-03-02 06:34:21 +01:00
parent 560c5a5df0
commit 150fe32405
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 1 additions and 1 deletions

View File

@ -735,7 +735,7 @@ begin
exit;
// the CE interface for dub doesn't make the difference between build type
//and config, instead each possible combination type + build is generated.
if fJSON.findArray('configurations', arr) then
if fJSON.findArray('configurations', arr) and (arr.Count > 0) then
begin
for i:= 0 to arr.Count-1 do
begin