Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
heliang666s committed Apr 21, 2024
1 parent ca07e93 commit 9af345d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void register(Invoker<?> invoker) {
}
register0(methodMapping, buildHandlerMeta(invoker, methodMeta));
// UseSuffixPatternMatch
if (restConfig.getSuffixPatternMatch()
if (restConfig != null && restConfig.getSuffixPatternMatch()
&& !invoker.getUrl().getPath().contains(".")) {
String newPath = invoker.getUrl().getPath() + ".*";
RequestMapping suffixMapping = new RequestMapping.Builder()
Expand All @@ -94,7 +94,7 @@ public void register(Invoker<?> invoker) {
register0(suffixMapping, buildHandlerMeta(invoker, methodMeta));
}
// UseTrailingSlashMatch
if (restConfig.getTrailingSlashMatch()
if (restConfig != null && restConfig.getTrailingSlashMatch()
&& !invoker.getUrl().getPath().endsWith("/")) {
String newPath = invoker.getUrl().getPath() + "/";
RequestMapping trailingSlashMapping = new RequestMapping.Builder()
Expand Down

0 comments on commit 9af345d

Please sign in to comment.