Skip to content

Commit

Permalink
Added a null check when evaluateing ClaimResponse for subscription wo…
Browse files Browse the repository at this point in the history
…rkflow
  • Loading branch information
dvargaslantana committed Sep 9, 2023
1 parent 46dbe70 commit 9160641
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private Subscription processSubscription(Subscription subscription) {
String outcome = App.getDB().readString(Table.CLAIM_RESPONSE, Collections.singletonMap("id", claimResponseId),
"outcome");
logger.info("SubscriptionEndpoint::Outcome for desired resource is: " + outcome);
if (!outcome.equals(FhirUtils.ReviewAction.PENDED.value()))
if (outcome == null || !outcome.equals(FhirUtils.ReviewAction.PENDED.value()))
return null;

// Add to db
Expand Down

0 comments on commit 9160641

Please sign in to comment.