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

Loading…
Cancel
Save