JBR-1248 Exception caused by broken font

port from JBR 11 to JBR 15 (cherry picked from commit 4efa7eab3e)

cherry picked from commit 6e1c514c6c
This commit is contained in:
Dmitry Batrak
2019-02-28 15:46:58 +03:00
committed by jbrbot
parent e586a83181
commit c41f49dce6

View File

@@ -61,7 +61,7 @@ public class FontFamily {
*/
static void remove(Font2D font2D) {
String name = font2D.getFamilyName(Locale.ENGLISH);
String name = font2D.familyName;
FontFamily family = getFamily(name);
if (family == null) {
return;