Skip to content

Commit

Permalink
pinpoint-apm#2077 Fix filter being null when excludeurl is not set
Browse files Browse the repository at this point in the history
Fix incorrect conditional check
  • Loading branch information
Xylus committed Sep 8, 2016
1 parent 4f7a442 commit b4d2bba
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ public class TomcatConfiguration {

public TomcatConfiguration(ProfilerConfig config) {
this.tomcatHidePinpointHeader = config.readBoolean("profiler.tomcat.hidepinpointheader", true);
if (config.getTomcatExcludeProfileMethodFilter() == null) {
Filter<String> tomcatExcludeUrlFilter = config.getTomcatExcludeUrlFilter();
if (tomcatExcludeUrlFilter == null) {
this.tomcatExcludeUrlFilter = new SkipFilter<String>();
} else {
this.tomcatExcludeUrlFilter = config.getTomcatExcludeUrlFilter();
this.tomcatExcludeUrlFilter = tomcatExcludeUrlFilter;
}
}

Expand Down

0 comments on commit b4d2bba

Please # to comment.