Skip to content

Commit 31e65b1

Browse files
committed
Fix NPE
1 parent f1e7714 commit 31e65b1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

singlecell/src/org/labkey/singlecell/CellHashingServiceImpl.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,11 @@ public void prepareHashingAndCiteSeqFilesIfNeeded(File sourceDir, PipelineJob jo
235235
job.getLogger().info("Count matrix not found for readset: " + hashingReadsetId);
236236
}
237237
}
238-
239-
SequenceOutputFile so = ts.getObject(SequenceOutputFile.class);
240-
readsetToCountMap.put(hashingReadsetId, so.getFile().getParentFile()); //this is the umi_counts dir
238+
else
239+
{
240+
SequenceOutputFile so = ts.getObject(SequenceOutputFile.class);
241+
readsetToCountMap.put(hashingReadsetId, so.getFile().getParentFile()); //this is the umi_counts dir
242+
}
241243
}
242244

243245
support.cacheReadset(hashingReadsetId, job.getUser());
@@ -282,9 +284,11 @@ else if (distinctHTOs.size() == 1)
282284
job.getLogger().info("Count matrix not found for readset: " + citeseqReadsetId);
283285
}
284286
}
285-
286-
SequenceOutputFile so = ts.getObject(SequenceOutputFile.class);
287-
readsetToCountMap.put(citeseqReadsetId, so.getFile().getParentFile()); //this is the umi_count dir
287+
else
288+
{
289+
SequenceOutputFile so = ts.getObject(SequenceOutputFile.class);
290+
readsetToCountMap.put(citeseqReadsetId, so.getFile().getParentFile()); //this is the umi_count dir
291+
}
288292
}
289293

290294
support.cacheReadset(citeseqReadsetId, job.getUser());

0 commit comments

Comments
 (0)