Browse Source

无JIRA任务 修复因数据结构变更,导致无法查找到

主题数据产生的NPE
research/11.0
Starryi 3 years ago
parent
commit
0f953c1357
  1. 3
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

3
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -1715,6 +1715,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
protected void setUpTheme4NewTemplate() {
TemplateTheme theme = getUsingTemplateThemeConfig().cachedFetchTheme4NewTemplate();
if (theme != null) {
theme = getUsingTemplateThemeConfig().createNewTheme();
}
TemplateThemeAttrMark themeAttrMark = template.getAttrMark(TemplateThemeAttrMark.XML_TAG);
if (themeAttrMark == null) {
themeAttrMark = new TemplateThemeAttrMark();

Loading…
Cancel
Save