[Run issue]: Null pointer usage issue #82
Unanswered
nknanfeng
asked this question in
Run-Problem
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Contact Details
[email protected]
What was the issue?
There is a null pointer usage issue at line 809 of the TOPAS-nBio/processes/TsEmDNAChemistry.cc file. If process is nullptr, then solvation will also be nullptr, and the usage at line 809 will cause a core dump. What is the intended meaning of this code?
process = G4ProcessTable::GetProcessTable()->FindProcess("e-_G4DNAElectronSolvation", "e-"); if ( process == nullptr ) { G4DNAElectronSolvation* solvation = (G4DNAElectronSolvation*)process; G4VEmModel* solvationModel = new G4DNAOneStepThermalizationModel(); solvation->SetEmModel(solvationModel, 0); }
TOPAS-nBio category
Geometry
Version
3.0
What Operative System (OS) are you running on?
No response
Relevant log output
No response
Code of Conduct
Attestation
Beta Was this translation helpful? Give feedback.
All reactions