commit | e5b50a65ad26a32f6e58588ffdcbc0389eac9257 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Mon Feb 11 16:18:42 2013 -0800 |
committer | Dianne Hackborn <hackbod@google.com> | Mon Feb 11 16:18:42 2013 -0800 |
tree | da018714d90c8e563925d6b65302cadde891876c | |
parent | de1fadfb7f70d464382e518c7f3390faf82f81f2 [diff] [blame] |
Fix issue #8176917: Stabillity : Native Crash : /system/lib/libandroidfw.so Change-Id: I235470fac7ad0f5a5d3432006f4dfa69620e30d8
diff --git a/core/jni/android_util_AssetManager.cpp b/core/jni/android_util_AssetManager.cpp index d422951..8a8b15f 100644 --- a/core/jni/android_util_AssetManager.cpp +++ b/core/jni/android_util_AssetManager.cpp
@@ -685,6 +685,10 @@ jobject outValue, jboolean resolve) { + if (outValue == null) { + jniThrowNullPointerException(env, "outValue"); + return null; + } AssetManager* am = assetManagerForJavaObject(env, clazz); if (am == NULL) { return 0;