From 02d576bc8291582dad3b7c449da450e358d39fe6 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Sat, 21 Sep 2013 00:06:02 +0000 Subject: [PATCH] ICU-7912 one last (?) review comment X-SVN-Rev: 34436 --- icu4c/source/i18n/unum.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/i18n/unum.cpp b/icu4c/source/i18n/unum.cpp index 144e589e2c3..9703f5d6a99 100644 --- a/icu4c/source/i18n/unum.cpp +++ b/icu4c/source/i18n/unum.cpp @@ -792,7 +792,7 @@ unum_parseToUFormattable(const UNumberFormat* fmt, UErrorCode* status) { UFormattable *newFormattable = NULL; if (U_FAILURE(*status)) return result; - if (fmt == NULL) { + if (fmt == NULL || (text==NULL && textLength!=0)) { *status = U_ILLEGAL_ARGUMENT_ERROR; return result; } -- 2.40.0