diff --git a/audio/aidl/vts/VtsHalAudioCoreModuleTargetTest.cpp b/audio/aidl/vts/VtsHalAudioCoreModuleTargetTest.cpp index 536bc26481..697aae9a30 100644 --- a/audio/aidl/vts/VtsHalAudioCoreModuleTargetTest.cpp +++ b/audio/aidl/vts/VtsHalAudioCoreModuleTargetTest.cpp @@ -446,6 +446,7 @@ class AudioCoreModuleBase { void TearDownImpl() { debug.reset(); + ASSERT_NE(module, nullptr); std::vector finalPorts; ASSERT_IS_OK(module->getAudioPorts(&finalPorts)); EXPECT_NO_FATAL_FAILURE(VerifyVectorsAreEqual(initialPorts, finalPorts))