Browse Source

存在空指针异常的可能性,增加一个判断语句

feature/big-screen
Yvan 4 years ago
parent
commit
5b880961ad
  1. 12
      designer-realize/src/main/java/com/fr/design/parameter/ParameterDefinitePane.java

12
designer-realize/src/main/java/com/fr/design/parameter/ParameterDefinitePane.java

@ -425,7 +425,9 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
if (propertyChangeListener != null) { if (propertyChangeListener != null) {
propertyChangeListener.propertyChange(); propertyChangeListener.propertyChange();
} }
workBook.setAutoHeightForCenterPane(); if (workBook != null) {
workBook.setAutoHeightForCenterPane();
}
} }
/** /**
@ -446,7 +448,9 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
if (propertyChangeListener != null) { if (propertyChangeListener != null) {
propertyChangeListener.propertyChange(); propertyChangeListener.propertyChange();
} }
workBook.setAutoHeightForCenterPane(); if (workBook != null) {
workBook.setAutoHeightForCenterPane();
}
} }
/** /**
@ -469,7 +473,9 @@ public class ParameterDefinitePane extends JPanel implements ToolBarMenuDockPlus
if (propertyChangeListener != null) { if (propertyChangeListener != null) {
propertyChangeListener.propertyChange(); propertyChangeListener.propertyChange();
} }
workBook.setAutoHeightForCenterPane(); if (workBook != null) {
workBook.setAutoHeightForCenterPane();
}
} }
/** /**

Loading…
Cancel
Save