summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnativeloader/test/src/android/test/hostside/LibnativeloaderTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/libnativeloader/test/src/android/test/hostside/LibnativeloaderTest.java b/libnativeloader/test/src/android/test/hostside/LibnativeloaderTest.java
index e7207aedd7..371c458b3d 100644
--- a/libnativeloader/test/src/android/test/hostside/LibnativeloaderTest.java
+++ b/libnativeloader/test/src/android/test/hostside/LibnativeloaderTest.java
@@ -116,8 +116,10 @@ public class LibnativeloaderTest extends BaseHostJUnit4Test {
ctx.mDevice.uninstallPackage("android.test.app.data");
String cleanupPathList = testInfo.properties().get(CLEANUP_PATHS_KEY);
- CleanupPaths cleanup = new CleanupPaths(ctx.mDevice, cleanupPathList);
- cleanup.cleanup();
+ if (cleanupPathList != null) {
+ CleanupPaths cleanup = new CleanupPaths(ctx.mDevice, cleanupPathList);
+ cleanup.cleanup();
+ }
}
@Test