From 127c5ef5d7bf2dc44fc53deeda9058a17e27addb Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 18 Jul 2013 16:51:04 -0700 Subject: Fix crash. Change-Id: I0b5d846d5a9e6b1c7c3756b653833c263634270b --- core/java/android/os/Bundle.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/java') diff --git a/core/java/android/os/Bundle.java b/core/java/android/os/Bundle.java index 2b0ae3a..48eb8cc 100644 --- a/core/java/android/os/Bundle.java +++ b/core/java/android/os/Bundle.java @@ -216,6 +216,8 @@ public final class Bundle implements Parcelable, Cloneable { } if (mMap == null) { mMap = new ArrayMap(N); + } else { + mMap.ensureCapacity(N); } mParcelledData.readArrayMapInternal(mMap, N, mClassLoader); mParcelledData.recycle(); -- cgit v1.1