diff --git a/src/contrib/energy/test/basic-energy-model-test.cc b/src/contrib/energy/test/basic-energy-model-test.cc index 134c0b0f5..b7decd2a3 100644 --- a/src/contrib/energy/test/basic-energy-model-test.cc +++ b/src/contrib/energy/test/basic-energy-model-test.cc @@ -140,7 +140,7 @@ BasicEnergyUpdateTest::StateSwitchTest ( Ptr devModel = DynamicCast (models.Get (0)); // check pointer - NS_TEST_ASSERT_MSG_NE (NULL, devModel, "NULL pointer to device model!"); + NS_TEST_ASSERT_MSG_NE (0, devModel, "NULL pointer to device model!"); /* * The radio will stay IDLE for m_timeS seconds. Then it will switch into a