提交 4f10767f 编写于 作者: S serge-rider

NPE fix


Former-commit-id: 3681957b
上级 8e6e5255
......@@ -68,8 +68,10 @@ public class EmptyPresentation extends AbstractPresentation {
e.gc.setForeground(UIStyles.getDefaultTextForeground());
//int fontSize = largeFont.getFontData()[0].getHeight();
String emptyDataMessage = controller.getDecorator().getEmptyDataMessage();
if (!CommonUtils.isEmpty(emptyDataMessage)) {
Point emSize = e.gc.textExtent(emptyDataMessage);
UIUtils.drawMessageOverControl(placeholder, e, emptyDataMessage, -emSize.y);
}
e.gc.setFont(normalFont);
String emptyDataDescription = controller.getDecorator().getEmptyDataDescription();
if (!CommonUtils.isEmpty(emptyDataDescription)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册