Skip to content

Commit 51baa6b

Browse files
shahor02ehellbar
authored andcommitted
Protection against null proc.context in GPUWorkflow
1 parent d890d41 commit 51baa6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/Workflow/src/GPUWorkflowSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ int32_t GPURecoWorkflowSpec::runMain(o2::framework::ProcessingContext* pc, GPUTr
517517
static bool first = true;
518518
if (first) {
519519
first = false;
520-
if (pc->services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) { // TPC ConfigurableCarams are somewhat special, need to construct by hand
520+
if (pc && pc->services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) { // TPC ConfigurableCarams are somewhat special, need to construct by hand
521521
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc->services().get<const o2::framework::DeviceSpec>().name, "rec_tpc"), "GPU_rec_tpc,GPU_rec,GPU_proc_param,GPU_proc,GPU_global,trackTuneParams");
522522
}
523523
}

0 commit comments

Comments
 (0)