Skip to content

Commit

Permalink
Return empty array if legacy file-list usage found in pxr or pxg prop…
Browse files Browse the repository at this point in the history
…erty.
  • Loading branch information
neilcsmith-net committed Aug 22, 2024
1 parent bca8b03 commit 4f6b3ee
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ private static Value valueFromSubcommand(URI context, String command) {
mapFromCommand(context, tokens);
case "file" ->
fileFromCommand(context, tokens);
// don't break on legacy file-list but also cannot support so
// return empty array
case "file-list" ->
PArray.EMPTY;
default ->
throw new IllegalArgumentException("Unsupported subcommand : " + token.getText());
};
Expand Down

0 comments on commit 4f6b3ee

Please sign in to comment.