diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 15:55:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 15:55:55 (GMT) |
commit | 9c4302f79e0547481a275c7ca655c04fc2d089c9 (patch) | |
tree | 3b7d8aa2f176af8c5b37ec5b02e223075a1f4856 | |
parent | 9c3b6549913ed7adc4f12a545ebb6005897f2058 (diff) | |
download | CMake-9c4302f79e0547481a275c7ca655c04fc2d089c9.zip CMake-9c4302f79e0547481a275c7ca655c04fc2d089c9.tar.gz CMake-9c4302f79e0547481a275c7ca655c04fc2d089c9.tar.bz2 |
ENH: do not allow null pointer access
-rw-r--r-- | Source/cmake.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 3afbf67..8636aa0 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1331,6 +1331,11 @@ void cmake::SetHomeOutputDirectory(const char* lib) void cmake::SetGlobalGenerator(cmGlobalGenerator *gg) { + if(!gg) + { + cmSystemTools::Error("Error SetGlobalGenerator called with null"); + return; + } // delete the old generator if (this->GlobalGenerator) { |