Skip to content

Commit 4f2f635

Browse files
committed
Add null check
1 parent 172c23d commit 4f2f635

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jbrowse/src/org/labkey/jbrowse/model/JsonFile.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,11 @@ protected boolean needsGzip()
717717
public File prepareResource(Logger log, boolean throwIfNotPrepared, boolean forceReprocess) throws PipelineJobException
718718
{
719719
ExpData expData = getExpData();
720+
if (expData == null)
721+
{
722+
throw new PipelineJobException("No ExpData for JsonFile: " + getObjectId());
723+
}
724+
720725
File targetFile = expData.getFile();
721726
if (needsGzip() && !isGzipped())
722727
{

0 commit comments

Comments
 (0)