Skip to content

Commit

Permalink
add null param check in NSSet
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Jun 27, 2016
1 parent 6665a30 commit 4eb58b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public NSSet(E object, E... objects) {
}

private NSSet(E[] objects, boolean checkForNull) {
if (objects == null) {
throw new IllegalArgumentException("Objects cannot be null.");
}
initFromObjects(objects, checkForNull);
}

Expand Down

0 comments on commit 4eb58b7

Please sign in to comment.