X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b25be06635768807f8f693286fa73bb2297bb06c..4388f060552cc537e71e957d32f35e9d75a61233:/icuSources/i18n/bms.cpp diff --git a/icuSources/i18n/bms.cpp b/icuSources/i18n/bms.cpp index 99a45896..0a1de08b 100644 --- a/icuSources/i18n/bms.cpp +++ b/icuSources/i18n/bms.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009, International Business Machines Corporation and Others. + * Copyright (C) 2008-2011, International Business Machines Corporation and Others. * All rights reserved. */ @@ -34,9 +34,11 @@ ucd_open(UCollator *coll, UErrorCode *status) U_CAPI void U_EXPORT2 ucd_close(UCD *ucd) { - CollData *data = STATIC_CAST(CollData *, ucd); + if (ucd != NULL) { + CollData *data = STATIC_CAST(CollData *, ucd); - CollData::close(data); + CollData::close(data); + } } U_CAPI UCollator * U_EXPORT2