blob: 304d2666e7483b50380f18221b0e3c8e7c24de64 [file] [log] [blame]
--- icu/source/layout/LookupProcessor.cpp
+++ icu/source/layout/LookupProcessor.cpp
@@ -201,7 +201,9 @@
if (requiredFeatureIndex != 0xFFFF) {
requiredFeatureTable = featureListTable->getFeatureTable(requiredFeatureIndex, &requiredFeatureTag);
- featureReferences += SWAPW(featureTable->lookupCount);
+ if (requiredFeatureTable) {
+ featureReferences += SWAPW(requiredFeatureTable->lookupCount);
+ }
}
lookupOrderArray = LE_NEW_ARRAY(le_uint16, featureReferences);