From 960762b5d87647925b00eeb04a1a8b6f89feef92 Mon Sep 17 00:00:00 2001 From: Tom Bishop Date: Mon, 26 Feb 2024 09:31:29 -0500 Subject: [PATCH] CLDR-17144 Fix CLDRModify -f NPE (#3521) -Check givenOptions.value != null --- .../src/main/java/org/unicode/cldr/tool/CLDRModify.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/CLDRModify.java b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/CLDRModify.java index fc9f3617bab..1666f471059 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/CLDRModify.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/CLDRModify.java @@ -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)) {