[OpenJDK 2D-Dev] RFR: 8202767 : java/awt/font/GlyphVector/TestLayoutFlags.java is missing null check

Phil Race philip.race at oracle.com
Tue May 8 15:32:54 UTC 2018


bug: https://bugs.openjdk.java.net/browse/JDK-8202767
webrev : http://cr.openjdk.java.net/~prr/8202767/

On a system without fonts that support this test, findFont returns null
which in turn makes makeGlyphVector return null.
The test needs to catch this else it will NPE

-phil.


More information about the 2d-dev mailing list