more IllegalArgumentExceptions
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1150 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
d3c8d535c0
commit
ba4c5f36bd
|
@ -134,8 +134,12 @@ public class J2EEAnalysisScope extends EMFScopeWrapper {
|
||||||
*
|
*
|
||||||
* @param scope
|
* @param scope
|
||||||
* an analysis scope.
|
* an analysis scope.
|
||||||
|
* @throws IllegalArgumentException if scope is null
|
||||||
*/
|
*/
|
||||||
public void addToApplicationLoader(AnalysisScope scope) {
|
public void addToApplicationLoader(AnalysisScope scope) {
|
||||||
|
if (scope == null) {
|
||||||
|
throw new IllegalArgumentException("scope is null");
|
||||||
|
}
|
||||||
ClassLoaderReference app = scope.getApplicationLoader();
|
ClassLoaderReference app = scope.getApplicationLoader();
|
||||||
for (Iterator it = scope.getModules(app).iterator(); it.hasNext();) {
|
for (Iterator it = scope.getModules(app).iterator(); it.hasNext();) {
|
||||||
Module M = (Module) it.next();
|
Module M = (Module) it.next();
|
||||||
|
|
Loading…
Reference in New Issue