diff --git a/core/src/main/java/org/phoenixctms/ctsms/service/trial/TrialServiceImpl.java b/core/src/main/java/org/phoenixctms/ctsms/service/trial/TrialServiceImpl.java index f4193431b8b7..23a52a3f2eb9 100644 --- a/core/src/main/java/org/phoenixctms/ctsms/service/trial/TrialServiceImpl.java +++ b/core/src/main/java/org/phoenixctms/ctsms/service/trial/TrialServiceImpl.java @@ -5987,7 +5987,7 @@ protected ECRFFieldValuesOutVO handleGetEcrfFieldValue(AuthenticationVO auth, Lo throws Exception { CheckIDUtil.checkProbandListEntryId(probandListEntryId, this.getProbandListEntryDao()); ECRFField ecrfField = CheckIDUtil.checkEcrfFieldId(ecrfFieldId, this.getECRFFieldDao()); - if (visitId == null) { + if (visitId != null) { CheckIDUtil.checkVisitId(visitId, this.getVisitDao()); } checkEcrfFieldValueIndex(ecrfField, probandListEntryId, visitId, ecrfFieldId, index);