Skip to content

Commit b1eb58c

Browse files
committed
fix fromItem.getAlias().getName() null point bug
1 parent 2dfff0f commit b1eb58c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

springboot-starter-data-authorization/src/main/java/com/codingapi/springboot/authorization/enhancer/TableColumnAliasHolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private void searchSubSelect(String parent, PlainSelect plainSelect) {
7575
FromItem currentItem = join.getRightItem();
7676
PlainSelect subPlainSelect = ((Select) currentItem).getPlainSelect();
7777
this.appendColumnAlias(parent, null, plainSelect.getSelectItems());
78-
parent = currentItem.getAlias().getName();
78+
parent = currentItem.getAlias()!=null?currentItem.getAlias().getName():null;
7979
this.searchSubSelect(parent, subPlainSelect);
8080
}
8181
if (join.getRightItem() instanceof Table) {

0 commit comments

Comments
 (0)