Browse Source

REPORT-78472【迭代】【起始页】不打开任何报表启动,点控件管理保存报错npe

npe 处理
feature/x
Harrison 2 years ago
parent
commit
cdbd27262c
  1. 8
      designer-realize/src/main/java/com/fr/design/actions/server/WidgetManagerAction.java

8
designer-realize/src/main/java/com/fr/design/actions/server/WidgetManagerAction.java

@ -1,16 +1,15 @@
package com.fr.design.actions.server;
import com.fr.base.svg.IconUtils;
import com.fr.design.DesignModelAdapter;
import com.fr.design.actions.UpdateAction;
import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.DesignerFrame;
import com.fr.design.mainframe.JTemplate;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.webattr.WidgetManagerPane;
import com.fr.form.ui.WidgetInfoConfig;
import com.fr.transaction.CallBackAdaptor;
import com.fr.transaction.Configurations;
import com.fr.transaction.WorkerFacade;
@ -61,7 +60,10 @@ public class WidgetManagerAction extends UpdateAction {
if (model != null) {
model.widgetConfigChanged();
}
designerFrame.getSelectedJTemplate().refreshToolArea();
JTemplate<?, ?> jt = designerFrame.getSelectedJTemplate();
if (JTemplate.isValid(jt)) {
jt.refreshToolArea();
}
}
}));
}

Loading…
Cancel
Save