Skip to content

Commit

Permalink
log class name in FluxMapFuseable if mapper returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Alammar authored and Ismail Alammar committed Mar 29, 2022
1 parent 4023191 commit 39ba753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void onNext(T t) {

try {
v = Objects.requireNonNull(mapper.apply(t),
"The mapper returned a null value.");
"The mapper [" + mapper.getClass().getName() + "] returned a null value.");
}
catch (Throwable e) {
Throwable e_ = Operators.onNextError(t, e, actual.currentContext(), s);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void onNext(T t) {

try {
v = Objects.requireNonNull(mapper.apply(t),
"The mapper returned a null value.");
"The mapper [" + mapper.getClass().getName() + "] returned a null value.");
}
catch (Throwable e) {
Throwable e_ = Operators.onNextError(t, e, actual.currentContext(), s);
Expand Down Expand Up @@ -279,7 +279,7 @@ public void onNext(T t) {

try {
v = Objects.requireNonNull(mapper.apply(t),
"The mapper returned a null value.");
"The mapper [" + mapper.getClass().getName() + "] returned a null value.");
}
catch (Throwable e) {
Throwable e_ = Operators.onNextError(t, e, actual.currentContext(), s);
Expand Down Expand Up @@ -307,7 +307,7 @@ public boolean tryOnNext(T t) {

try {
v = Objects.requireNonNull(mapper.apply(t),
"The mapper returned a null value.");
"The mapper [" + mapper.getClass().getName() + "] returned a null value.");
return actual.tryOnNext(v);
}
catch (Throwable e) {
Expand Down

0 comments on commit 39ba753

Please sign in to comment.