OSDN Git Service

Gracefully handle apps without native libraries.
authorJeff Sharkey <jsharkey@android.com>
Tue, 8 Jul 2014 15:59:49 +0000 (08:59 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 8 Jul 2014 16:00:45 +0000 (09:00 -0700)
Bug: 16148014
Change-Id: Ida23545046387b567744ee520baa4713e8403f30

core/java/com/android/internal/content/NativeLibraryHelper.java

index b4352f8..c39f167 100644 (file)
@@ -189,6 +189,7 @@ public class NativeLibraryHelper {
 
     // Convenience method to call removeNativeBinariesFromDirLI(File)
     public static boolean removeNativeBinariesLI(String nativeLibraryPath) {
+        if (nativeLibraryPath == null) return false;
         return removeNativeBinariesFromDirLI(new File(nativeLibraryPath));
     }