Skip to content

Commit

Permalink
Change error message in ObservableFromArray
Browse files Browse the repository at this point in the history
Changed error message from "The $i th element is null" to "The element at index $i is null".

Solves ReactiveX#6460
  • Loading branch information
iruizm authored Apr 13, 2019
1 parent c04cfb8 commit 72cc01f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void run() {
for (int i = 0; i < n && !isDisposed(); i++) {
T value = a[i];
if (value == null) {
downstream.onError(new NullPointerException("The " + i + "th element is null"));
downstream.onError(new NullPointerException("The element at index " + i + " is null"));
return;
}
downstream.onNext(value);
Expand Down

0 comments on commit 72cc01f

Please sign in to comment.