Skip to content

Commit

Permalink
fix npe on empty pathinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Feb 2, 2024
1 parent 9dadc39 commit 0bb3794
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public PathSimple(boolean last, String... parts) {

@Override
public List<String> process(String path) {
if (path == null)
return null;

int o = 1;
List<String> list = new ArrayList<>(parts.length + (last ? 1 : 0));

Expand Down Expand Up @@ -64,6 +67,8 @@ public PathRegexp(String p) {

@Override
public List<String> process(String path) {
if (path == null)
return null;
Matcher m = p.matcher(path);
if (!m.matches())
return null;
Expand Down

0 comments on commit 0bb3794

Please sign in to comment.