Skip to content

Commit 8c5bd1d

Browse files
takuarakiakarnokd
authored andcommitted
2.x: fix incorrect error message at SubscriptionHelper.setOnce (#5623)
1 parent ad8ca8e commit 8c5bd1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/reactivex/internal/subscriptions/SubscriptionHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static boolean set(AtomicReference<Subscription> field, Subscription s) {
137137
* @return true if the operation succeeded, false if the target field was not null.
138138
*/
139139
public static boolean setOnce(AtomicReference<Subscription> field, Subscription s) {
140-
ObjectHelper.requireNonNull(s, "d is null");
140+
ObjectHelper.requireNonNull(s, "s is null");
141141
if (!field.compareAndSet(null, s)) {
142142
s.cancel();
143143
if (field.get() != CANCELLED) {

0 commit comments

Comments
 (0)