From 9c4302f79e0547481a275c7ca655c04fc2d089c9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 3 Oct 2006 11:55:55 -0400 Subject: ENH: do not allow null pointer access --- Source/cmake.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- cgit v0.12