more IllegalArgumentExceptions

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1150 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2007-05-17 20:27:37 +00:00
parent d3c8d535c0
commit ba4c5f36bd
1 changed files with 4 additions and 0 deletions

View File

@ -134,8 +134,12 @@ public class J2EEAnalysisScope extends EMFScopeWrapper {
*
* @param scope
* an analysis scope.
* @throws IllegalArgumentException if scope is null
*/
public void addToApplicationLoader(AnalysisScope scope) {
if (scope == null) {
throw new IllegalArgumentException("scope is null");
}
ClassLoaderReference app = scope.getApplicationLoader();
for (Iterator it = scope.getModules(app).iterator(); it.hasNext();) {
Module M = (Module) it.next();