Merge "Handle missing static for CREATOR"

This commit is contained in:
Irfan Sheriff
2013-01-11 18:27:59 -08:00
committed by Android (Google) Code Review

View File

@@ -2087,6 +2087,10 @@ public final class Parcel {
+ "Parcelable.Creator object called "
+ " CREATOR on class " + name);
}
catch (NullPointerException e) {
throw new BadParcelableException("Parcelable protocol requires "
+ "the CREATOR object to be static on class " + name);
}
if (creator == null) {
throw new BadParcelableException("Parcelable protocol requires a "
+ "Parcelable.Creator object called "