

personDTO.getCondifion().equals("ALL")
주어가 없어서 생기는 문제
주어는 이렇게 2개로 보여진다
personDTO.getCondition()
personDTO

personDTO가 null일 수 있는 가능성 = 0%
바로 위에서 new 를 하기 때문에
그렇다면 문제는 getCondition()에 있다는 것이다
getCondition이 null이라는 뜻이다

setCondition("ALL")로 추가를 해준다
'에러&문제해결 > JAVA' 카테고리의 다른 글
| [eclips] Could not launch external web browser for... (0) | 2025.11.29 |
|---|---|
| java.lang.NullPointerException (0) | 2025.10.28 |
| 예외처리 | try~catch | java.lang.ArithmeticException (0) | 2025.10.22 |
| 형변환 에러 | instanceof | equals오버라이딩 (0) | 2025.10.21 |
| Selection does not contain a main type (0) | 2025.10.17 |