< prev index next >

src/share/classes/sun/font/CompositeStrike.java

Print this page

        

@@ -70,10 +70,14 @@
         return getStrikeForSlot(glyphCode >>> 24);
     }
 
     PhysicalStrike getStrikeForSlot(int slot) {
 
+        if (slot >= strikes.length) {
+            slot = 0;
+        }
+
         PhysicalStrike strike = strikes[slot];
         if (strike == null) {
             strike =
                 (PhysicalStrike)(compFont.getSlotFont(slot).getStrike(desc));
 
< prev index next >