Commit 1e46802c authored by Christoph Rettinger's avatar Christoph Rettinger
Browse files

Added further nullptr checks

parent 4b77bcf2
......@@ -78,6 +78,7 @@ public:
WALBERLA_CHECK( !blockStorage_.expired() );
auto blockStorage = blockStorage_.lock();
WALBERLA_CHECK_NOT_NULLPTR(blockStorage);
Cell centerCell = blockStorage->getBlockLocalCell( block_, x, y, z );
......
......@@ -75,6 +75,7 @@ public:
WALBERLA_CHECK( !blockStorage_.expired() );
auto blockStorage = blockStorage_.lock();
WALBERLA_CHECK_NOT_NULLPTR(blockStorage);
Cell nearestCell = blockStorage->getBlockLocalCell( block_, x, y, z );
......
......@@ -122,6 +122,7 @@ public:
WALBERLA_CHECK( !blockStorage_.expired() );
auto blockStorage = blockStorage_.lock();
WALBERLA_CHECK_NOT_NULLPTR(blockStorage);
Cell centerCell = blockStorage->getBlockLocalCell( block_, x, y, z );
......
......@@ -74,6 +74,7 @@ public:
WALBERLA_CHECK( !blockStorage_.expired() );
auto blockStorage = blockStorage_.lock();
WALBERLA_CHECK_NOT_NULLPTR(blockStorage);
Cell nearestCell = blockStorage->getBlockLocalCell( block_, x, y, z );
......
......@@ -78,6 +78,7 @@ public:
WALBERLA_CHECK( !blockStorage_.expired() );
auto blockStorage = blockStorage_.lock();
WALBERLA_CHECK_NOT_NULLPTR(blockStorage);
const real_t dx = blockStorage->dx( blockStorage->getLevel( block_ ) );
const real_t dy = blockStorage->dy( blockStorage->getLevel( block_ ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment