Fix possible null pointer exception
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3666 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
2953c9f069
commit
929e5b9276
|
|
@ -171,7 +171,7 @@ public class RealignerTargetCreator extends RodWalker<RealignerTargetCreator.Eve
|
||||||
GenomeLoc eventLoc = context.getLocation();
|
GenomeLoc eventLoc = context.getLocation();
|
||||||
if ( hasInsertion )
|
if ( hasInsertion )
|
||||||
eventLoc = GenomeLocParser.createGenomeLoc(eventLoc.getContigIndex(), eventLoc.getStart(), eventLoc.getStart()+1);
|
eventLoc = GenomeLocParser.createGenomeLoc(eventLoc.getContigIndex(), eventLoc.getStart(), eventLoc.getStart()+1);
|
||||||
else if ( hasIndel && context.getBasePileup().size() == 0 )
|
else if ( hasIndel && (context.getBasePileup() == null || context.getBasePileup().size() == 0) )
|
||||||
eventLoc = GenomeLocParser.createGenomeLoc(eventLoc.getContigIndex(), eventLoc.getStart(), furthestStopPos);
|
eventLoc = GenomeLocParser.createGenomeLoc(eventLoc.getContigIndex(), eventLoc.getStart(), furthestStopPos);
|
||||||
|
|
||||||
EVENT_TYPE eventType = (hasIndel ? (hasPointEvent ? EVENT_TYPE.BOTH : EVENT_TYPE.INDEL_EVENT) : EVENT_TYPE.POINT_EVENT);
|
EVENT_TYPE eventType = (hasIndel ? (hasPointEvent ? EVENT_TYPE.BOTH : EVENT_TYPE.INDEL_EVENT) : EVENT_TYPE.POINT_EVENT);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue