Skip to content

Commit d781e26

Browse files
committed
Throw a more direct exception
1 parent 72abde8 commit d781e26

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mGAP/src/org/labkey/mgap/pipeline/mGapReleaseGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ public void init(JobContext ctx, List<SequenceOutputFile> inputFiles, List<Recor
193193
}
194194

195195
SequenceOutputFile so = SequenceOutputFile.getForId(rs.getInt(FieldKey.fromString("vcfId")));
196+
if (so == null)
197+
{
198+
throw new SQLException("No output file found for: " + rs.getInt(FieldKey.fromString("vcfId")));
199+
}
200+
196201
ExpData d = ExperimentService.get().getExpData(so.getDataId());
197202
ctx.getSequenceSupport().cacheExpData(d);
198203

0 commit comments

Comments
 (0)