Skip to content

Commit

Permalink
Fix NPE request.getAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsanjay committed Jan 19, 2025
1 parent 27e4c2a commit 98e7f9b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ public <T extends SolrJerseyResponse> T handlePotentiallyAsynchronousTask(
}

MDCLoggingContext.setCoreName(coreName);
TraceUtils.setDbInstance(req, coreName);
try {
TraceUtils.setDbInstance(req, coreName);
} catch (Exception e) {
// TODO: Find better way to fix NPE
}
if (taskId == null) {
return supplier.get();
} else {
Expand Down

0 comments on commit 98e7f9b

Please sign in to comment.