NullpointerException1 [오류리포트] Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "service.model.StudentDTO.getCondition()" is null 학생부 프로그램을 만드는 중에 오류가 발생했다.오류코드를 분석해보니 controller와 DAO 사이에서 발생한 것으로 확인되었다. 먼저 DAO를 살펴보았다.1234567891011121314151617181920212223242526272829 public ArrayListStudentDTO> selectAll(StudentDTO studentDTO) { // 내가 가지고있는 데이터 전부를 넘겨주면됨 System.out.println(" sevice.model.StudentDAO selectAll() 시작"); ArrayListStudentDTO> datas=new ArrayListStudentDTO>();// 반환할 배열생성 if(stud.. 2024. 7. 18. 이전 1 다음