if (executionDegree.getExecutionYear() == executionPeriod.getExecutionYear()) {
if (executionPeriod != null && executionDegree.getExecutionYear() == executionPeriod.getExecutionYear()) {
    private ExecutionDegree findExecutinDegree(final DegreeCurricularPlan degreeCurricularPlan, final ExecutionPeriod executionPeriod) {        if (degreeCurricularPlan != null) {            for (final ExecutionDegree executionDegree : degreeCurricularPlan.getExecutionDegrees()) {                if (executionDegree.getExecutionYear() == executionPeriod.getExecutionYear()) {                    return executionDegree;                }            }        }        return null;    }