Skip to content

Commit 3244a11

Browse files
committed
Fix destination class in CRTReaderApplication, check for nullptr queue descriptor
1 parent 88eca15 commit 3244a11

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/CRTReaderApplication.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,19 @@ CRTReaderApplication::generate_modules(const confmodel::Session* session) const
7373
for (auto rule : get_queue_rules()) {
7474
auto destination_class = rule->get_destination_class();
7575
auto data_type = rule->get_descriptor()->get_data_type();
76-
// Why datahander here?
77-
if (destination_class == "FDDataHandlerModule") {
76+
// Why datahander here? It is the base class for several DataHandler types (e.g. FDDataHandlerModule,
77+
// SNBDataHandlerModule)
78+
if (destination_class == "DataHandlerModule") {
7879
if (data_type != "DataRequest") {
7980
dlh_input_qdesc = rule->get_descriptor();
8081
}
8182
}
8283
}
8384

85+
if (dlh_input_qdesc == nullptr) {
86+
throw(BadConf(ERS_HERE, "No data link handler input queue descriptor given"));
87+
}
88+
8489
//
8590
// Scan Detector 2 DAQ connections to extract sender, receiver and stream information
8691
//

0 commit comments

Comments
 (0)