diff options
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapPythonCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index 0c1d6a2..705a8a4 100644 --- a/Source/cmVTKWrapPythonCommand.cxx +++ b/Source/cmVTKWrapPythonCommand.cxx @@ -70,6 +70,11 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string>& args) j != args.end(); ++j) { cmMakefile::SourceMap::iterator l = Classes.find(*j); + if (l == Classes.end()) + { + this->SetError("bad source list passed to VTKWrapPythonCommand"); + return false; + } for(std::vector<cmSourceFile>::iterator i = l->second.begin(); i != l->second.end(); i++) { |