mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-12 10:15:34 -06:00
Guard against null-pointer dereference.
This restores the check that was lost in commit 79562ca
.
This commit is contained in:
parent
e50033e3a2
commit
7b395fabbb
@ -280,7 +280,7 @@ namespace Opm
|
||||
gravity, */
|
||||
{
|
||||
// Intercept usage of bcs, since we do not handle it.
|
||||
if (bcs->nbc != 0) {
|
||||
if (bcs && bcs->nbc != 0) {
|
||||
OPM_THROW(std::runtime_error, "SimulatorFullyImplicitBlackoil cannot handle boundary conditions other than no-flow. Not implemented yet.");
|
||||
}
|
||||
// For output.
|
||||
|
Loading…
Reference in New Issue
Block a user