Skip to content

Commit 5753d1d

Browse files
committed
Throw exception when generic profile samples list is empty
1 parent 907de59 commit 5753d1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/mskcc/cbio/portal/dao/DaoGeneticProfileSamples.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ public static ArrayList <Integer> getOrderedSampleList(int geneticProfileId) thr
128128
// Split, based on DELIM token
129129
String[] parts = orderedSampleList.split(DELIM);
130130
if (parts.length == 1 && parts[0].isBlank()) {
131-
return new ArrayList<Integer>();
131+
throw new IllegalStateException("genetic_profile_samples row for geneticProfileId="
132+
+ geneticProfileId + " has blank ORDERED_SAMPLE_LIST. Consider removing it.");
132133
}
133134
ArrayList <Integer> sampleList = new ArrayList <Integer>();
134135
for (String internalSampleId : parts) {

0 commit comments

Comments
 (0)