File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/rx/subscriptions
test/java/rx/subscriptions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public synchronized boolean isUnsubscribed() {
56
56
*/
57
57
public void add (final Subscription s ) {
58
58
if (s == null ) {
59
- throw new IllegalArgumentException ("Added Subscription cannot be null." );
59
+ throw new NullPointerException ("Added Subscription cannot be null." );
60
60
}
61
61
Subscription unsubscribe = null ;
62
62
synchronized (this ) {
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ public void testTryRemoveIfNotIn() {
338
338
csub .remove (csub1 ); // try removing agian
339
339
}
340
340
341
- @ Test (expected = IllegalArgumentException .class )
341
+ @ Test (expected = NullPointerException .class )
342
342
public void testAddingNullSubscriptionIllegal () {
343
343
CompositeSubscription csub = new CompositeSubscription ();
344
344
csub .add (null );
You can’t perform that action at this time.
0 commit comments