Browse Source

rt

feature/big-screen
zack 5 years ago
parent
commit
b0ea4d5216
  1. 2
      designer-base/src/main/java/com/fr/design/fun/impl/AbstractToolbarItem.java

2
designer-base/src/main/java/com/fr/design/fun/impl/AbstractToolbarItem.java

@ -26,6 +26,6 @@ public abstract class AbstractToolbarItem extends AbstractProvider implements To
@Override @Override
public boolean accept() { public boolean accept() {
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
return currentTemplate.isJWorkBook() || currentTemplate instanceof JVirtualTemplate; return currentTemplate == null || currentTemplate.isJWorkBook() || currentTemplate instanceof JVirtualTemplate;
} }
} }
Loading…
Cancel
Save