diff --git a/unicodetools/src/main/java/org/unicode/idna/LoadIdnaTest.java b/unicodetools/src/main/java/org/unicode/idna/LoadIdnaTest.java index 2a25e0bcb..7fc0d4931 100644 --- a/unicodetools/src/main/java/org/unicode/idna/LoadIdnaTest.java +++ b/unicodetools/src/main/java/org/unicode/idna/LoadIdnaTest.java @@ -102,7 +102,7 @@ private TestLine(String test) { // type = Type.valueOf(parts.get(0)); try { - source = fromHex.transform(parts.get(col++)); + source = getWithFallback(fromHex.transform(parts.get(col++)), ""); toUnicode = getWithFallback(fromHex.transform(parts.get(col++)), source); toUnicodeErrors = parseEnumSet(parts.get(col++)); @@ -135,7 +135,7 @@ private Set parseEnumSet(String toUnicodeRaw) { } private String getWithFallback(String string, String fallback) { - return string.isEmpty() ? fallback : string; + return string.isEmpty() ? fallback : string.equals("\"\"") ? "" : string; } @Override