add a check for IllegalArgumentException

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2304 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2008-01-07 19:40:20 +00:00
parent 2e6a0f6606
commit 497558d268
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ public class SparseIntSet implements IntSet {
}
public IntSet intersection(IntSet that) {
if (that == null) {
throw new IllegalArgumentException("that == null");
}
if (that instanceof SparseIntSet) {
MutableSparseIntSet temp = MutableSparseIntSet.make(this);
temp.intersectWith((SparseIntSet) that);