Source:
<code>protected Spreadsheet buildIndividualCandidacyReport(final Spreadsheet spreadsheet, final IndividualCandidacyProcess individualCandidacyProcess) { DegreeChangeIndividualCandidacyProcess degreeChangeIndividualCandidacyProcess = (DegreeChangeIndividualCandidacyProcess) individualCandidacyProcess; final Row row = spreadsheet.addRow(); row.setCell(degreeChangeIndividualCandidacyProcess.getProcessCode()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getName()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getIdDocumentType().getLocalizedName()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getDocumentIdNumber()); if (degreeChangeIndividualCandidacyProcess.getPersonalDetails().getCountry().getCountryNationality().getContent() != null) row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getCountry().getCountryNationality().getContent()); else <START> row.setCell("-"); <END> row.setCell(degreeChangeIndividualCandidacyProcess.getPrecedentDegreeInformation().getPrecedentInstitution().getName()); row.setCell(degreeChangeIndividualCandidacyProcess.getPrecedentDegreeInformation().getPrecedentDegreeDesignation()); row.setCell(degreeChangeIndividualCandidacyProcess.getCandidacy().getSelectedDegree().getName()); row.setCell(BundleUtil.getString(Bundle.ENUMERATION, individualCandidacyProcess.getCandidacyState().getQualifiedName())); row.setCell(BundleUtil.getString(Bundle.CANDIDATE, degreeChangeIndividualCandidacyProcess.getProcessChecked() != null && degreeChangeIndividualCandidacyProcess.getProcessChecked() ? MESSAGE_YES : MESSAGE_NO)); return spreadsheet; }</code><technical_language>missing { } in if - else statement. NPE occurs dereferencing getCountry I think</technical_language>

Target:
protected Spreadsheet buildIndividualCandidacyReport(final Spreadsheet spreadsheet, final IndividualCandidacyProcess individualCandidacyProcess) { DegreeChangeIndividualCandidacyProcess degreeChangeIndividualCandidacyProcess = (DegreeChangeIndividualCandidacyProcess) individualCandidacyProcess; final Row row = spreadsheet.addRow(); row.setCell(degreeChangeIndividualCandidacyProcess.getProcessCode()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getName()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getIdDocumentType().getLocalizedName()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getDocumentIdNumber()); row.setCell(degreeChangeIndividualCandidacyProcess.getPersonalDetails().getCountry().getCountryNationality().getContent()); row.setCell(degreeChangeIndividualCandidacyProcess.getPrecedentDegreeInformation().getPrecedentInstitution().getName()); row.setCell(degreeChangeIndividualCandidacyProcess.getPrecedentDegreeInformation().getPrecedentDegreeDesignation()); row.setCell(degreeChangeIndividualCandidacyProcess.getCandidacy().getSelectedDegree().getName()); row.setCell(BundleUtil.getString(Bundle.ENUMERATION, individualCandidacyProcess.getCandidacyState().getQualifiedName())); row.setCell(BundleUtil.getString(Bundle.CANDIDATE, degreeChangeIndividualCandidacyProcess.getProcessChecked() != null && degreeChangeIndividualCandidacyProcess.getProcessChecked() ? MESSAGE_YES : MESSAGE_NO)); return spreadsheet; }