if (lesson.getInfoRoomOccupation().getFrequency().intValue() == RoomOccupation.QUINZENAL) {
if (lesson.getInfoRoomOccupation().getFrequency() != null && lesson.getInfoRoomOccupation().getFrequency().intValue() == RoomOccupation.QUINZENAL) {
    public StringBuffer render(LessonSlot lessonSlot) {        StringBuffer strBuffer = new StringBuffer();        //InfoLesson lesson =        // lessonSlot.getInfoLessonWrapper().getInfoLesson();        InfoShowOccupation showOccupation = lessonSlot.getInfoLessonWrapper().getInfoShowOccupation();        if (showOccupation instanceof InfoLesson) {            InfoLesson lesson = (InfoLesson) showOccupation;            InfoExecutionCourse infoExecutionCourse = lesson.getInfoShift().getInfoDisciplinaExecucao();            strBuffer.append("<a href='viewSite.do?method=firstPage&amp;objectCode=");            strBuffer.append(infoExecutionCourse.getIdInternal());            strBuffer.append("&amp;executionPeriodOID=");            strBuffer.append(infoExecutionCourse.getInfoExecutionPeriod().getIdInternal());            strBuffer.append("'>").append(lesson.getInfoShift().getInfoDisciplinaExecucao().getSigla())                    .append("</a>");            strBuffer.append("&nbsp;(").append(lesson.getTipo()).append(")");            //TODO(rspl): Will it stay like this the interface for showing            // it is a quinzenal lesson?            if (lesson.getInfoRoomOccupation().getFrequency().intValue() == RoomOccupation.QUINZENAL) {                strBuffer.append("&nbsp;&nbsp;[Q]");            }        } else {            InfoExam infoExam = (InfoExam) showOccupation;            for (int iterEC = 0; iterEC < infoExam.getAssociatedExecutionCourse().size(); iterEC++) {                InfoExecutionCourse infoEC = (InfoExecutionCourse) infoExam                        .getAssociatedExecutionCourse().get(iterEC);                if (iterEC != 0) {                    strBuffer.append(", ");                }                strBuffer.append(infoEC.getSigla());            }            strBuffer.append(" - ");            strBuffer.append(infoExam.getSeason().getSeason());            strBuffer.append(" poca");        }        return strBuffer;    }