epj2make,ide; fix null crashes with makefile generation for configuration-less projects.
authorRejean Loyer <rejean.loyer@gmail.com>
Tue, 30 Oct 2012 19:40:21 +0000 (15:40 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 5 Nov 2012 07:42:34 +0000 (02:42 -0500)
ide/src/project/Project.ec
ide/src/project/ProjectView.ec

index e4a06ac..64889e0 100755 (executable)
@@ -1357,7 +1357,7 @@ private:
       int compilingEC = 0;
       int numErrors = 0, numWarnings = 0;
       bool loggedALine = false;
-      char * configName = config.name;
+      char * configName = config ? config.name : "Common";
       int lenMakeCommand = strlen(compiler.makeCommand);
 
       char cppCommand[MAX_LOCATION];
index 8be62dc..97da87c 100644 (file)
@@ -621,7 +621,7 @@ class ProjectView : Window
          exists = FileExists(makefilePath);
          if(method == force ||
            (method == forceExists && exists) ||
-           (method == normal && (!exists || config.makingModified)) )
+           (method == normal && (!exists || (config && config.makingModified))))
          {
             char * reason;
             char * action;