diff --git a/src/main/java/org/broad/igv/sam/SAMAlignment.java b/src/main/java/org/broad/igv/sam/SAMAlignment.java index a5c8b5972..5c7a0eb6b 100644 --- a/src/main/java/org/broad/igv/sam/SAMAlignment.java +++ b/src/main/java/org/broad/igv/sam/SAMAlignment.java @@ -692,8 +692,8 @@ public String getAlignmentValueString(double position, int mouseX, AlignmentTrac buf.append("Dist: " + getClusterDistance() + "
"); } - boolean hideSmallIndels = renderOptions.isHideSmallIndels(); - int smallIndelThreshold = renderOptions.getSmallIndelThreshold(); + boolean hideSmallIndels = renderOptions == null ? false : renderOptions.isHideSmallIndels(); + int smallIndelThreshold = renderOptions == null ? 0 : renderOptions.getSmallIndelThreshold(); boolean atInsertion = false; boolean atBaseMod = false;