public SectionList getSectionList() throws SQLException { SectionList sectionList; UserMapper userMapper = sqlSession.getMapper(UserMapper.class); if (userMapper != null) { List<Section> sList = userMapper.getSectionList(); if (sList == null) { sectionList = new SectionList(); sectionList.setErrorCode(Configuration.ErrorCodes.ER1001.getCodeName()); sectionList.setSubscribe_kor(Configuration.ErrorCodes.ER1001.getSubtitleKor()); return sectionList; } else { sectionList = new SectionList(); sectionList.setSecList(sList); sectionList.setErrorCode(Configuration.ErrorCodes.Success.getCodeName()); sectionList.setSubscribe_kor(Configuration.ErrorCodes.Success.getSubtitleKor()); return sectionList; } } else { sectionList = new SectionList(); sectionList.setErrorCode(Configuration.ErrorCodes.ER0000.getCodeName()); sectionList.setSubscribe_kor(Configuration.ErrorCodes.ER0000.getSubtitleKor()); return sectionList; } }