Do not throw NullPointerException when ReplicationValve#filter is not set.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1059379 13f79535-47bb-0310-9956-
ffa450edef68
* @return True if no session change
*/
protected boolean isRequestWithoutSessionChange(String uri) {
- return filter.matcher(uri).matches();
+ Pattern f = filter;
+ return f != null && f.matcher(uri).matches();
}
/**
</subsection>
<subsection name="Cluster">
<changelog>
+ <fix>
+ <bug>50591</bug>: Fix NPE in ReplicationValve. (kkolinko)
+ </fix>
<add>
Internationalise the log messages for the FarmWarDeployer. (markt)
</add>