mcharmas/android-parcelable-intellij-plugin

Not properly inflating ParcelableExtras

tominsam opened this issue · 1 comments

When mEventDetail is an instance of the class EventDetail, generated for for inflation is

    private BasketState(Parcel in) {
        this.mEventDetail = in.readParcelable(((Object) mEventDetail).getClass().getClassLoader());
        ...

mEventDetail isn't initialized at this point so mEventDetail.getClass() is null and inflation fails. It needs to be

    private BasketState(Parcel in) {
        this.mEventDetail = in.readParcelable(EventDetail.class.getClassLoader());

Sorry, this has been done for a while in my fork but I never submitted a PR. Just did.