Merge
authorlana
Wed, 28 Aug 2013 08:59:50 -0700
changeset 19779 fe0b98be61a0
parent 19448 f7bcbf987d5c (current diff)
parent 19778 348bbe532a97 (diff)
child 19780 9b0b2ea681b7
Merge
--- a/jdk/src/share/native/sun/font/layout/SunLayoutEngine.cpp	Fri Aug 23 14:14:05 2013 -0700
+++ b/jdk/src/share/native/sun/font/layout/SunLayoutEngine.cpp	Wed Aug 28 08:59:50 2013 -0700
@@ -179,6 +179,10 @@
   FontInstanceAdapter fia(env, font2d, strike, mat, 72, 72, (le_int32) upem, (TTLayoutTableCache *) layoutTables);
   LEErrorCode success = LE_NO_ERROR;
   LayoutEngine *engine = LayoutEngine::layoutEngineFactory(&fia, script, lang, typo_flags & TYPO_MASK, success);
+  if (engine == NULL) {
+    env->SetIntField(gvdata, gvdCountFID, -1); // flag failure
+    return;
+  }
 
   if (min < 0) min = 0; if (max < min) max = min; /* defensive coding */
   // have to copy, yuck, since code does upcalls now.  this will be soooo slow