Browse Source

fix npe

feature/big-screen
hades 5 years ago
parent
commit
e0cef2e6b9
  1. 16
      designer-realize/src/main/java/com/fr/start/DesignerSubListener.java

16
designer-realize/src/main/java/com/fr/start/DesignerSubListener.java

@ -26,13 +26,15 @@ public class DesignerSubListener {
} }
public void start() { public void start() {
FineProcessContext.getParentPipe().listen(FineProcessEngineEvent.READY, new Listener<Null>() { if (FineProcessContext.getParentPipe() != null) {
@Override FineProcessContext.getParentPipe().listen(FineProcessEngineEvent.READY, new Listener<Null>() {
public void on(Event event, Null param) { @Override
if (DesignerContext.getDesignerFrame() == null || !DesignerContext.getDesignerFrame().isShowing()) { public void on(Event event, Null param) {
FineProcessContext.getParentPipe().fire(new CarryMessageEvent(DesignerProcessType.INSTANCE.obtain())); if (DesignerContext.getDesignerFrame() == null || !DesignerContext.getDesignerFrame().isShowing()) {
FineProcessContext.getParentPipe().fire(new CarryMessageEvent(DesignerProcessType.INSTANCE.obtain()));
}
} }
} });
}); }
} }
} }

Loading…
Cancel
Save