Skip to content

Commit

Permalink
CLDR-17144 Fix CLDRModify -f NPE (#3521)
Browse files Browse the repository at this point in the history
-Check givenOptions.value != null
  • Loading branch information
btangmu authored Feb 26, 2024
1 parent 86d7243 commit 960762b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ private static void checkSuboptions(int i, UnicodeSet allowedOptions) {
+ CldrUtility.LINE_SEPARATOR
+ "Use -? for help.");
}
if (i == FIX) {
if (i == FIX && givenOptions.value != null) {
final UnicodeSet allowedFilters = new UnicodeSet().add('P').add('Q').add('V');
for (char c : givenOptions.value.toCharArray()) {
if (!allowedFilters.contains(c)) {
Expand Down

0 comments on commit 960762b

Please sign in to comment.