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