Skip to content

Commit 31c0b65

Browse files
committed
Fix exception in BlastJob when container not found
1 parent 1d4fbf6 commit 31c0b65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

blast/src/org/labkey/blast/model/BlastJob.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public void setParams(String params)
112112
}
113113
catch (JSONException e)
114114
{
115-
_log.error("Unable to parse BlastJob config for: " + _objectid + " in container: " + ContainerManager.getForId(_container).getPath() + ", was: " + _params);
115+
String containerPath = getContainer() == null || ContainerManager.getForId(getContainer()) == null ? "<MISSING: " + getContainer() + ">" : ContainerManager.getForId(getContainer()).getPath();
116+
_log.error("Unable to parse BlastJob config for: " + _objectid + " in container: " + containerPath + ", was: " + _params);
116117
}
117118
}
118119

@@ -249,7 +250,7 @@ public File getOutputDir()
249250
throw new UnsupportedOperationException("this can only be called from the webserver");
250251
}
251252

252-
Container c = ContainerManager.getForId(_container);
253+
Container c = ContainerManager.getForId(getContainer());
253254
if (c == null)
254255
{
255256
return null;

0 commit comments

Comments
 (0)