Skip to content

Commit b084e00

Browse files
committed
Error check
1 parent 1fac863 commit b084e00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/CreateReferenceLibraryTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ public RecordedActionSet run() throws PipelineJobException
163163
libraryMembers = new TableSelector(libraryMembersTable, new SimpleFilter(FieldKey.fromString("library_id"), getPipelineJob().getLibraryId()), new Sort("ref_nt_id/name")).getArrayList(ReferenceLibraryMember.class);
164164
}
165165

166+
if (libraryMembers == null)
167+
{
168+
throw new PipelineJobException("There are no sequences in the library: " + getPipelineJob().getLibraryId());
169+
}
170+
166171
getJob().getLogger().info("there are " + libraryMembers.size() + " sequences to process");
167172

168173
//make sure sequence names are unique

0 commit comments

Comments
 (0)