File tree Expand file tree Collapse file tree
common-tools/clas-analysis/src/main/java/org/jlab/analysis/postprocess Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,12 +153,15 @@ public static void main(String[] args) {
153153
154154 // Update RUN::config.unixtime:
155155 if (runConfigBank .getRows () > 0 ) {
156- int evno = runConfigBank .getByte ("event" , 0 );
157- Integer unix = eventUnix .get (eventUnix .floorKey (evno ));
158- if (unix != null ) {
159- event .remove (runConfigBank .getSchema ());
160- runConfigBank .putInt ("unixtime" , 0 , unix );
161- event .write (runConfigBank );
156+ int evno = runConfigBank .getInt ("event" , 0 );
157+ Integer key = eventUnix .floorKey (evno );
158+ if (key != null ) {
159+ Integer unix = eventUnix .get (key );
160+ if (unix != null ) {
161+ event .remove (runConfigBank .getSchema ());
162+ runConfigBank .putInt ("unixtime" , 0 , unix );
163+ event .write (runConfigBank );
164+ }
162165 }
163166 }
164167
You can’t perform that action at this time.
0 commit comments