ENH: do not allow null pointer access
This commit is contained in:
parent
9c3b654991
commit
9c4302f79e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue