mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Several fixes
Add missing initializers Guard potential null pointer access
This commit is contained in:
@@ -221,7 +221,7 @@ std::set<size_t> RimFractureContainmentTools::fracturedCellsTruncatedByFaults(co
|
||||
|
||||
// Negative faultThrow disables test on faultThrow
|
||||
double maximumFaultThrow = -1.0;
|
||||
if (fracture && fracture->fractureTemplate())
|
||||
if (fracture->fractureTemplate() && fracture->fractureTemplate()->fractureContainment())
|
||||
{
|
||||
maximumFaultThrow = fracture->fractureTemplate()->fractureContainment()->minimumFaultThrow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user