diff --git a/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp b/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp index 454aa1f921..d715d24b0b 100644 --- a/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp +++ b/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp @@ -86,6 +86,7 @@ class CompilationCachingTest : public NeuralnetworksHidlTest { protected: void SetUp() override { NeuralnetworksHidlTest::SetUp(); + ASSERT_NE(device.get(), nullptr); // Create cache directory. char cacheDirTemp[] = "/data/local/tmp/TestCompilationCachingXXXXXX";