Skip to content

Commit

Permalink
Merge pull request #6898 from ORCID/FixNPEONPeerReviews
Browse files Browse the repository at this point in the history
Fix NPE when checking for the peer review source
  • Loading branch information
amontenegro authored Oct 3, 2023
2 parents bcaf289 + 1c3ce5f commit 8094784
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public List<PeerReviewMinimizedSummary> getPeerReviewMinimizedSummaryList(String
BigInteger putCode = (BigInteger) q1[2];
String visibility = q1[3].toString();
String groupName = q1[4].toString();
String sourceId = q1[5].toString();
String clientSourceId = q1[6].toString();
String assertionOriginSourceId = q1[7].toString();
String sourceId = (q1[5] == null) ? null : q1[5].toString();
String clientSourceId = (q1[6] == null) ? null : q1[6].toString();
String assertionOriginSourceId = (q1[7] == null) ? null : q1[7].toString();
if (peerReviewMinimizedSummaryList.size() > 0) {
List<PeerReviewMinimizedSummary> peerReviews = peerReviewMinimizedSummaryList
.stream()
Expand Down

0 comments on commit 8094784

Please sign in to comment.