more IllegalArgumentExceptions

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

View File

@ -64,7 +64,9 @@ final public class ExceptionHandler {
}
public boolean equals(ExceptionHandler h) {
assert h != null;
if (h == null) {
throw new IllegalArgumentException("h is null");
}
return h.handler == handler && (catchClass == null ? h.catchClass == null : catchClass.equals(h.catchClass));
}