From 4e742ec252fe4103e2ad0e41e0a5539e57521200 Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Tue, 27 Jan 2026 10:58:43 -0500 Subject: [PATCH 1/3] catch EvioCompactReader bug --- .../src/main/java/org/jlab/io/evio/EvioDataEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java b/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java index cae3f5c028..669b0a2d4e 100644 --- a/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java +++ b/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java @@ -54,7 +54,7 @@ public EvioDataEventHandler(ByteBuffer buff){ try { structure = new EvioCompactStructureHandler(evioBuffer,DataType.BANK); eventNodes = structure.getChildNodes(); - } catch (EvioException ex) { + } catch (EvioException | IndexOutOfBoundsException ex) { Logger.getLogger(EvioDataEvent.class.getName()).log(Level.SEVERE, null, ex); } //this.list(); From c31a1674701ec1ead31293aa9c562ec27804fa46 Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Tue, 27 Jan 2026 11:25:51 -0500 Subject: [PATCH 2/3] catch another one --- .../src/main/java/org/jlab/io/evio/EvioDataEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java b/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java index 669b0a2d4e..f028b4cd85 100644 --- a/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java +++ b/common-tools/clas-io/src/main/java/org/jlab/io/evio/EvioDataEventHandler.java @@ -54,7 +54,7 @@ public EvioDataEventHandler(ByteBuffer buff){ try { structure = new EvioCompactStructureHandler(evioBuffer,DataType.BANK); eventNodes = structure.getChildNodes(); - } catch (EvioException | IndexOutOfBoundsException ex) { + } catch (EvioException | IndexOutOfBoundsException | NullPointerException ex) { Logger.getLogger(EvioDataEvent.class.getName()).log(Level.SEVERE, null, ex); } //this.list(); From a128ee1fafcfd60629d07b6a373aab29e4dcc96b Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Tue, 27 Jan 2026 11:42:57 -0500 Subject: [PATCH 3/3] one more try --- .../main/java/org/jlab/detector/decode/CodaEventDecoder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CodaEventDecoder.java b/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CodaEventDecoder.java index bef9ba4504..3a7703dad1 100644 --- a/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CodaEventDecoder.java +++ b/common-tools/clas-detector/src/main/java/org/jlab/detector/decode/CodaEventDecoder.java @@ -9,6 +9,7 @@ import org.jlab.coda.jevio.ByteDataTransformer; import org.jlab.coda.jevio.CompositeData; import org.jlab.coda.jevio.DataType; +import org.jlab.coda.jevio.EvioCompactStructureHandler; import org.jlab.coda.jevio.EvioException; import org.jlab.coda.jevio.EvioNode; import org.jlab.detector.decode.DetectorDataDgtz.ADCData; @@ -309,6 +310,8 @@ public List getEventBranches(EvioDataEvent event){ ArrayList branches = new ArrayList<>(); try { + EvioCompactStructureHandler ecsh = event.getStructureHandler(); + if (ecsh == null) return branches; List eventNodes = event.getStructureHandler().getNodes(); if(eventNodes==null){ return branches;