Skip to content

Commit ef8417e

Browse files
committed
Simplify
Font can't be null
1 parent 138af37 commit ef8417e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libbluray/bdj/java/java/awt/BDGraphicsBase.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,8 @@ public Font getFont() {
220220
}
221221

222222
public FontMetrics getFontMetrics() {
223-
if (font != null && fontMetrics == null) {
224-
fontMetrics = BDFontMetrics.getFontMetrics(font);
225-
}
226223
if (fontMetrics == null) {
227-
logger.error("getFontMetrics() failed");
224+
fontMetrics = BDFontMetrics.getFontMetrics(getFont());
228225
}
229226
return fontMetrics;
230227
}

0 commit comments

Comments
 (0)