Skip to content

Commit 33819b5

Browse files
Merge pull request #1031 from benjchristensen/subject-npe
Fix NPE in SubjectSubscriptionManager
2 parents bc387d1 + 56eebb5 commit 33819b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void call() {
9494
}));
9595
if (subscription.isUnsubscribed()) {
9696
addedObserver = false;
97-
break;
97+
return;
9898
}
9999
// on subscribe add it to the map of outbound observers to notify
100100
newState = current.addObserver(subscription, observer);

0 commit comments

Comments
 (0)