Skip to content

Commit 9beb005

Browse files
committed
Avoid NPE for PbsvJointCallingHandler
1 parent 0ed77bf commit 9beb005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/PbsvJointCallingHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
139139
outputBaseName = outputBaseName.replaceAll(".vcf$", "");
140140
}
141141

142-
if (getVariantPipelineJob(ctx.getJob()).isScatterJob())
142+
if (getVariantPipelineJob(ctx.getJob()) != null && getVariantPipelineJob(ctx.getJob()).isScatterJob())
143143
{
144144
outputBaseName = outputBaseName + "." + getVariantPipelineJob(ctx.getJob()).getIntervalSetName();
145145
}
@@ -149,7 +149,7 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
149149
boolean jobCompleted = expectedFinalOutputIdx.exists(); // this would occur if the job died during the cleanup phase
150150

151151
List<File> outputs = new ArrayList<>();
152-
if (getVariantPipelineJob(ctx.getJob()).isScatterJob())
152+
if (getVariantPipelineJob(ctx.getJob()) != null && getVariantPipelineJob(ctx.getJob()).isScatterJob())
153153
{
154154
for (Interval i : getVariantPipelineJob(ctx.getJob()).getIntervalsForTask())
155155
{

0 commit comments

Comments
 (0)