Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed Aug 15, 2024
1 parent 193eddb commit b1a775d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/broad/igv/sam/AlignmentTileLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ AlignmentTile loadTile(String chr,
boolean filterSecondaryAlignments = prefMgr.getAsBoolean(SAM_FILTER_SECONDARY_ALIGNMENTS);
boolean filterSupplementaryAlignments = prefMgr.getAsBoolean(SAM_FILTER_SUPPLEMENTARY_ALIGNMENTS);
ReadGroupFilter filter = ReadGroupFilter.getFilter();
boolean filterDuplicates = renderOptions.getDuplicatesOption() == AlignmentTrack.DuplicatesOption.FILTERED;
boolean filterDuplicates = renderOptions != null
? renderOptions.getDuplicatesOption() == AlignmentTrack.DuplicatesOption.FILTERED
: prefMgr.getAsBoolean(SAM_FILTER_DUPLICATES);

int qualityThreshold = prefMgr.getAsInt(SAM_QUALITY_THRESHOLD);
int alignmentScoreTheshold = prefMgr.getAsInt(SAM_ALIGNMENT_SCORE_THRESHOLD);

Expand Down

0 comments on commit b1a775d

Please sign in to comment.