Commit 928606d3 authored by Petri Hintukainen's avatar Petri Hintukainen

Check for null

parent a004863f
......@@ -170,7 +170,11 @@ abstract class BDGraphicsBase extends Graphics2D implements ConstrainableGraphic
public FontMetrics getFontMetrics(Font font) {
return BDFontMetrics.getFontMetrics(font);
if (font != null) {
return BDFontMetrics.getFontMetrics(font);
logger.error("getFontMetrics(null) from " + Logger.dumpStack());
return null;
public void setColor(Color c) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment