File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
roda-common/roda-common-data/src/main/java/org/roda/core/data/v2/jobs Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public enum JOB_STATE {
117117
118118 // Transient jobStats field for backwards compatibility with existing code
119119 @ Transient
120- private JobStats jobStats = null ;
120+ private JobStats jobStats = new JobStats () ;
121121
122122 // plugin full class (e.g. org.roda.core.plugins.plugins.base.FixityPlugin)
123123 @ Column (name = "plugin" )
@@ -174,7 +174,7 @@ public Job(Job job) {
174174 this .pluginParameters = new HashMap <>(job .getPluginParameters ());
175175 this .sourceObjects = job .getSourceObjects ();
176176 if (sourceObjects instanceof SelectedItemsList ) {
177- jobStats .setSourceObjectsCount (((SelectedItemsList <?>) sourceObjects ).getIds ().size ());
177+ getJobStats () .setSourceObjectsCount (((SelectedItemsList <?>) sourceObjects ).getIds ().size ());
178178 }
179179 this .instanceId = job .getInstanceId ();
180180 this .instanceName = job .getInstanceName ();
You can’t perform that action at this time.
0 commit comments