Skip to content

NullPointerException in ATOFHit.convertTdcToTime — timeOffsets array is null #1183

@mathieuouillon

Description

@mathieuouillon

The ATOF reconstruction engine crashes with a NullPointerException when the timeOffsets array has not been initialized. The error occurs in ATOFHit.convertTdcToTime at line 204, called during hit construction (ATOFHit.<init> line 417). This suggests the calibration constants for ATOF time offsets were not loaded from CCDB, or the relevant table/variation is missing for the current run.

Stack Trace

java.lang.NullPointerException: Cannot load from double array because "timeOffsets" is null
    at org.jlab.rec.atof.hit.ATOFHit.convertTdcToTime(ATOFHit.java:204)
    at org.jlab.rec.atof.hit.ATOFHit.<init>(ATOFHit.java:417)
    at org.jlab.rec.atof.hit.HitFinder.findHits(HitFinder.java:92)
    at org.jlab.service.atof.ATOFEngine.processDataEvent(ATOFEngine.java:106)
    at org.jlab.clas.reco.ReconstructionEngine.filterEvent(ReconstructionEngine.java:368)
    at org.jlab.clas.reco.ReconstructionEngine.execute(ReconstructionEngine.java:407)

Environment

  • CJ 13.8.2
  • timestamp: 04/04/2026-07:00:00

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions