Added a NPE guard
This commit is contained in:
@@ -308,6 +308,9 @@ public final class TraceWebFilter implements WebFilter, Ordered {
|
||||
}
|
||||
|
||||
private void addClassNameTag(Object handler, Span span) {
|
||||
if (handler == null) {
|
||||
return;
|
||||
}
|
||||
String className;
|
||||
if (handler instanceof HandlerMethod) {
|
||||
className = ((HandlerMethod) handler).getBeanType().getSimpleName();
|
||||
|
||||
Reference in New Issue
Block a user