Browse Source

REPORT-4421 以下参数未生成问题=>修复空指针错误

master
plough 7 years ago
parent
commit
d27fbb50d1
  1. 9
      designer_form/src/com/fr/design/parameter/ParameterPropertyPane.java

9
designer_form/src/com/fr/design/parameter/ParameterPropertyPane.java

@ -90,8 +90,13 @@ public class ParameterPropertyPane extends JPanel{
return;
}
// 表单中,只有添加并选中参数面板时,才显示
boolean hideInJForm = DesignerContext.getDesignerFrame().getSelectedJTemplate() instanceof JForm &&
!(FormHierarchyTreePane.getInstance().getComponentTree().getSelectionPath().getLastPathComponent() instanceof XWParameterLayout);
boolean hideInJForm;
try {
hideInJForm = DesignerContext.getDesignerFrame().getSelectedJTemplate() instanceof JForm &&
!(FormHierarchyTreePane.getInstance().getComponentTree().getSelectionPath().getLastPathComponent() instanceof XWParameterLayout);
} catch (NullPointerException ex) {
hideInJForm = false;
}
if (isVisible && toolbarPane.hasSelectedLabelItem() && !hideInJForm) {
addParaPane.setVisible(true);
this.setPreferredSize(null);

Loading…
Cancel
Save