diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-07-02 18:03:20 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-07-02 18:03:20 (GMT) |
commit | 44062bf4b7862aacb7c14846d36567f6ec76b4aa (patch) | |
tree | a996e61dc1e14b873f0a8d97fc8b1515e001e201 /Source/cmVTKWrapJavaCommand.cxx | |
parent | 238fe481f3df2ddc993f85f236ec01162e14372d (diff) | |
download | CMake-44062bf4b7862aacb7c14846d36567f6ec76b4aa.zip CMake-44062bf4b7862aacb7c14846d36567f6ec76b4aa.tar.gz CMake-44062bf4b7862aacb7c14846d36567f6ec76b4aa.tar.bz2 |
Better error checking.
Diffstat (limited to 'Source/cmVTKWrapJavaCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapJavaCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVTKWrapJavaCommand.cxx b/Source/cmVTKWrapJavaCommand.cxx index eba4723..2a91878 100644 --- a/Source/cmVTKWrapJavaCommand.cxx +++ b/Source/cmVTKWrapJavaCommand.cxx @@ -69,6 +69,11 @@ bool cmVTKWrapJavaCommand::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 VTKWrapJavaCommand"); + return false; + } for(std::vector<cmSourceFile>::iterator i = l->second.begin(); i != l->second.end(); i++) { |