Change-Id: Ibf760f09dd633773109e4528125041a4dbd1bb23
icon = compileMathMLExpression(text, component.getFont().getSize());
}
}
-
+
+ if (icon == null) {
+ // Shortcut when we are sure text is
+ // neither Latex nor MathML
+ return false;
+ }
+
try {
setIcon(component, icon);
} catch (InvocationTargetException e) {