File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
clas-detector/src/main/java/org/jlab/detector/decode
clas-io/src/main/java/org/jlab/io/evio Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 77import java .util .logging .Logger ;
88import org .jlab .coda .jevio .CompositeData ;
99import org .jlab .coda .jevio .DataType ;
10+ import org .jlab .coda .jevio .EvioCompactStructureHandler ;
1011import org .jlab .coda .jevio .EvioException ;
1112import org .jlab .coda .jevio .EvioNode ;
1213import org .jlab .detector .decode .DetectorDataDgtz .ADCData ;
@@ -30,7 +31,11 @@ public class CodaDecoders {
3031 public static List <EvioTreeBranch > getEventBranches (EvioDataEvent event ){
3132 ArrayList <EvioTreeBranch > branches = new ArrayList <>();
3233 try {
33- List <EvioNode > eventNodes = event .getStructureHandler ().getNodes ();
34+ EvioCompactStructureHandler handler = event .getStructureHandler ();
35+ if (handler == null ) {
36+ return branches ;
37+ }
38+ List <EvioNode > eventNodes = handler .getNodes ();
3439 if (eventNodes ==null ) {
3540 return branches ;
3641 }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public EvioDataEventHandler(ByteBuffer buff){
4747 try {
4848 structure = new EvioCompactStructureHandler (evioBuffer ,DataType .BANK );
4949 eventNodes = structure .getChildNodes ();
50- } catch (EvioException ex ) {
50+ } catch (EvioException | IndexOutOfBoundsException | NullPointerException ex ) {
5151 Logger .getLogger (EvioDataEvent .class .getName ()).log (Level .SEVERE , null , ex );
5252 }
5353 }
You can’t perform that action at this time.
0 commit comments