X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FmodelBrowser2%2Flabel%2FConnectionRelationLabelDecorationRule.java;fp=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FmodelBrowser2%2Flabel%2FConnectionRelationLabelDecorationRule.java;h=952d9c8c4a057a62c6b431567b877b95e93ec6c8;hb=4b6ff1fec23b4a67b8bef502922ee9801c84a394;hp=dc0ee266bf92d3235e09a9471d426e37fc595ac0;hpb=de8cf4f7d7035bdc8d07ef0b03253ef44485d29c;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser2/label/ConnectionRelationLabelDecorationRule.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser2/label/ConnectionRelationLabelDecorationRule.java index dc0ee266b..952d9c8c4 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser2/label/ConnectionRelationLabelDecorationRule.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser2/label/ConnectionRelationLabelDecorationRule.java @@ -31,7 +31,7 @@ public class ConnectionRelationLabelDecorationRule implements LabelDecorationRul static LabelDecorator DECO = new LabelDecorator.Stub() { @SuppressWarnings("unchecked") public F decorateFont(F font, String column, int itemIndex) { - return (F) ((FontDescriptor) font).withStyle(SWT.BOLD); + return font != null ? (F) ((FontDescriptor) font).withStyle(SWT.BOLD) : null; } };