From 56eebb5146fc354d10e9a10d920c7c1e71a57cc3 Mon Sep 17 00:00:00 2001 From: Ben Christensen Date: Fri, 11 Apr 2014 12:35:52 -0700 Subject: [PATCH] Fix NPE in SubjectSubscriptionManager --- .../src/main/java/rx/subjects/SubjectSubscriptionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java b/rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java index 6f049eb38a..2b744f4515 100644 --- a/rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java +++ b/rxjava-core/src/main/java/rx/subjects/SubjectSubscriptionManager.java @@ -94,7 +94,7 @@ public void call() { })); if (subscription.isUnsubscribed()) { addedObserver = false; - break; + return; } // on subscribe add it to the map of outbound observers to notify newState = current.addObserver(subscription, observer);