Guard against null-pointer dereference.

This restores the check that was lost in commit 79562ca.
This commit is contained in:
Bård Skaflestad 2013-10-03 16:30:54 +02:00
parent e50033e3a2
commit 7b395fabbb

View File

@ -280,7 +280,7 @@ namespace Opm
gravity, */ gravity, */
{ {
// Intercept usage of bcs, since we do not handle it. // 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."); OPM_THROW(std::runtime_error, "SimulatorFullyImplicitBlackoil cannot handle boundary conditions other than no-flow. Not implemented yet.");
} }
// For output. // For output.