Skip to content
Snippets Groups Projects
Commit ca2e9562 authored by Jure Bericic's avatar Jure Bericic
Browse files

Replaced `gHcParms->Find()` calls with `gHcParms->LoadParmValues()`.

The calls to `Find()` need to be wrapped in checks if returned pointer is null.
Otherwise a further call to get value produces SegFault. The `LoadParmValues()`
does not suffer from this, since it throws error if non-optional parameter is
not found. The error message also tells which parameter is missing.

I still left three calls to `Find()` in `THcAnalyzer.cxx`. They are wrapped in
checks and some other things...
parent 1fc8c377
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment