Skip to content
Snippets Groups Projects
  • Jure Bericic's avatar
    ca2e9562
    Replaced `gHcParms->Find()` calls with `gHcParms->LoadParmValues()`. · ca2e9562
    Jure Bericic authored
    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...
    ca2e9562
    History
    Replaced `gHcParms->Find()` calls with `gHcParms->LoadParmValues()`.
    Jure Bericic authored
    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...