diff --git a/tests/cts/net/src/android/net/cts/NetworkWatchlistTest.java b/tests/cts/net/src/android/net/cts/NetworkWatchlistTest.java index e4e350c456..81a9e30dd5 100644 --- a/tests/cts/net/src/android/net/cts/NetworkWatchlistTest.java +++ b/tests/cts/net/src/android/net/cts/NetworkWatchlistTest.java @@ -19,6 +19,7 @@ package android.net.cts; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertNotEquals; +import static org.junit.Assert.assertNotNull; import static org.junit.Assume.assumeTrue; import android.content.Context; @@ -72,6 +73,7 @@ public class NetworkWatchlistTest { setWatchlistConfig(TEST_EMPTY_WATCHLIST_XML); // Verify test watchlist config is not set before testing byte[] result = mConnectivityManager.getNetworkWatchlistConfigHash(); + assertNotNull("Watchlist config does not exist", result); assertNotEquals(TEST_WATCHLIST_CONFIG_HASH, byteArrayToHexString(result)); }