ide/ProjectSettings: Fixed remaining crash on deleting last config
authorJerome St-Louis <jerome@ecere.com>
Sat, 27 Apr 2013 19:42:42 +0000 (15:42 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 27 Apr 2013 19:42:42 +0000 (15:42 -0400)
ide/src/ProjectSettings.ec

index 5353518..a56d955 100644 (file)
@@ -1764,8 +1764,12 @@ class BuildTab : Tab
             }
          }
       }
-      if(!project.config && project.topNode.configurations.count)
-         project.config = project.topNode.configurations[0];
+      if(!project.config)
+      {
+         List<ProjectConfig> configs = project.topNode.configurations;
+         if(configs && configs.count)
+            project.config = configs[0];
+      }
 
       ide.UpdateToolBarActiveConfigs(false);
    }