Rather than catching NullPointerException it is more usual to test for null i.e.

if (diseaseOccurrence.getDiseaseGroup() != null && diseaseOccurrence.getDiseaseGroup().getValidatorDiseaseGroup() != null) {
    name = diseaseOccurrence.getDiseaseGroup().getValidatorDiseaseGroup().getName();
}