Backport fix to #203 from DSTU2 branch

This commit is contained in:
James Agnew 2015-08-05 10:09:17 -04:00
parent c49941060b
commit 76d26a1a26
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class FhirResourceDaoQuestionnaireAnswersDstu2 extends FhirResourceDaoDst
super.validateResourceForStorage(theResource);
QuestionnaireAnswers qa = (QuestionnaireAnswers) theResource;
if (qa.getQuestionnaire().getReference().isEmpty()) {
if (qa == null || qa.getQuestionnaire() == null || qa.getQuestionnaire().getReference() == null || qa.getQuestionnaire().getReference().isEmpty()) {
return;
}