--- old/src/share/native/sun/font/layout/IndicReordering.cpp 2014-05-22 14:34:36.000000000 -0700 +++ new/src/share/native/sun/font/layout/IndicReordering.cpp 2014-05-22 14:34:36.000000000 -0700 @@ -1096,9 +1096,13 @@ le_int32 IndicReordering::v2process(const LEUnicode *chars, le_int32 charCount, le_int32 scriptCode, - LEUnicode *outChars, LEGlyphStorage &glyphStorage) + LEUnicode *outChars, LEGlyphStorage &glyphStorage, LEErrorCode& success) { const IndicClassTable *classTable = IndicClassTable::getScriptClassTable(scriptCode); + if (classTable == NULL) { + success = LE_MEMORY_ALLOCATION_ERROR; + return 0; + } DynamicProperties dynProps[INDIC_BLOCK_SIZE]; IndicReordering::getDynamicProperties(dynProps,classTable);