Skip to content

Commit

Permalink
Add checks to prevent null pointer on alterations in geneFilterQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Oct 13, 2024
1 parent 0ac1039 commit 4967744
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@

<foreach item="geneFilterQuery" collection="geneFilterQueryList" open=" AND ((" separator=") OR (" close="))">
hugo_gene_symbol = #{geneFilterQuery.hugoGeneSymbol}
<foreach item="alteration" collection="geneFilterQuery.getAlterations()" open="AND (" separator=") OR (" close=")">
cna_alteration = #{alteration.code}
</foreach>
<if test="geneFilterQuery.getAlterations() != null">
<foreach item="alteration" collection="geneFilterQuery.getAlterations()" open="AND (" separator=") OR (" close=")">
cna_alteration = #{alteration.code}
</foreach>
</if>
</foreach>
</where>
</foreach>
Expand Down

0 comments on commit 4967744

Please sign in to comment.