Browse Source

插入单元列排序按钮NPE fix

newui
renekton 4 months ago
parent
commit
b7755fee9c
  1. 3
      designer-realize/src/main/java/com/fr/design/sort/celldscolumn/CellDSColumnSortGroupPane.java

3
designer-realize/src/main/java/com/fr/design/sort/celldscolumn/CellDSColumnSortGroupPane.java

@ -27,6 +27,7 @@ public class CellDSColumnSortGroupPane extends AbstractSortGroupPane {
java.util.Map<String, TableDataWrapper> tableDataWrapperMap =
DesignTableDataManager.getAllEditingDataSet(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().getTarget());
Map<String, TableDataWrapper> allDataSetIncludingProcedure = DesignTableDataManager.getAllDataSetIncludingProcedure(tableDataWrapperMap);
if (dsColumn != null) {
TableDataWrapper tableDataWrapper = allDataSetIncludingProcedure.get(dsColumn.getDSName());
if (tableDataWrapper != null) {
java.util.List<String> columnNameList = tableDataWrapper.calculateColumnNameList();
@ -37,6 +38,8 @@ public class CellDSColumnSortGroupPane extends AbstractSortGroupPane {
cellDSColumnSortItemPane.sortAreaUiComboBox.addItem(columnName);
}
}
}
cellDSColumnSortItemPane.populateBean(sortExpression);
return cellDSColumnSortItemPane;
}

Loading…
Cancel
Save