File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
blast/src/org/labkey/blast/model Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 44import org .apache .logging .log4j .Logger ;
55import org .apache .logging .log4j .LogManager ;
66import org .jetbrains .annotations .Nullable ;
7+ import org .json .JSONException ;
78import org .json .JSONObject ;
89import org .labkey .api .data .Container ;
910import org .labkey .api .data .ContainerManager ;
@@ -105,7 +106,14 @@ public void setParams(String params)
105106 if (params == null )
106107 _params = null ;
107108
108- _params = new HashMap <>(new JSONObject (params ).toMap ());
109+ try
110+ {
111+ _params = new HashMap <>(new JSONObject (params ).toMap ());
112+ }
113+ catch (JSONException e )
114+ {
115+ _log .error ("Unable to parse BlastJob config for: " + _objectid + " in container: " + ContainerManager .getForId (_container ).getPath () + ", was: " + _params );
116+ }
109117 }
110118
111119 public void addParam (String name , String value )
You can’t perform that action at this time.
0 commit comments