ENH: do not allow null pointer access

This commit is contained in:
Bill Hoffman 2006-10-03 11:55:55 -04:00
parent 9c3b654991
commit 9c4302f79e
1 changed files with 5 additions and 0 deletions

View File

@ -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)
{