Browse Source

fix: NPE 방지코드 추가

feature/address-coordinate
lkd9125(이경도) 8 months ago
parent
commit
f52ed400e4
  1. 6
      pav-server/src/main/java/com/palnet/biz/jpa/repository/pty/PtyCstmrQueryRepository.java

6
pav-server/src/main/java/com/palnet/biz/jpa/repository/pty/PtyCstmrQueryRepository.java

@ -238,6 +238,8 @@ public class PtyCstmrQueryRepository {
.where(builder)
.fetchFirst();
if (entity != null) {
PtyCstmrDtl dtlEntity = query.select(dtl)
.from(dtl)
.where(dtl.cstmrSno.eq(entity.getCstmrSno()))
@ -255,8 +257,6 @@ public class PtyCstmrQueryRepository {
.fetch();
}
if (entity != null) {
JwtUserModel model = new JwtUserModel();
model.setAuth(entity.getAuthId());
model.setUserId(entity.getUserId());
@ -281,8 +281,6 @@ public class PtyCstmrQueryRepository {
} else {
return null;
}
}
/**

Loading…
Cancel
Save