Commit 5f240d4d authored by Tuukka Lehtonen's avatar Tuukka Lehtonen

Fix NPE regression after commit 4b19c757

gitlab #681
parent 13b65736
......@@ -274,7 +274,8 @@ public class TextGridNode extends G2DParentNode implements Decoration {
@Override
public boolean execute(Cell key) {
A a = nodes.get(key);
int h = a.getFont().getSize();
Font f = a.getFont();
int h = f != null ? f.getSize() : 0;
if(h > hs[key.y])
hs[key.y] = h;
return true;
......
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