Index: SVGFont.java =================================================================== --- SVGFont.java (revision 985475) +++ SVGFont.java (working copy) @@ -339,12 +339,18 @@ Feature medi = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_MEDI); Feature fina = gsub.getFeatureList().findFeature(ls, FEATURE_TAG_FINA); - initialSubst = (SingleSubst) - gsub.getLookupList().getLookup(init, 0).getSubtable(0); - medialSubst = (SingleSubst) - gsub.getLookupList().getLookup(medi, 0).getSubtable(0); - terminalSubst = (SingleSubst) - gsub.getLookupList().getLookup(fina, 0).getSubtable(0); + if (init != null) { + initialSubst = (SingleSubst) + gsub.getLookupList().getLookup(init, 0).getSubtable(0); + } + if (medi != null) { + medialSubst = (SingleSubst) + gsub.getLookupList().getLookup(medi, 0).getSubtable(0); + } + if (fina != null) { + terminalSubst = (SingleSubst) + gsub.getLookupList().getLookup(fina, 0).getSubtable(0); + } } } }