-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using PaperParcel with Kotlin but i get a crash "java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.b.h.b, parameter schoolName" #179
Comments
Hey, could you please send the ProfileData class? I'll take a look |
@Anmol92verma are you able to post that class, or alternatively some other code that demonstrates the issue? |
@PaperParcel
} |
Hello. I have the same problem. I see this error when I'm building the release project with proguard. Have you got a solution? |
@Slik1002 you won't need any special proguard rules for this library. It sounds as though you have a kotlin model, but it's being instantiated incorrectly (probably through the usage of Gson or Moshi). Just a guess! If that is the case, then your model object was instantiated with a |
same problem here |
I am passing data to some fragment in bundle and while receiving it throws the exception "java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.b.h.b, parameter schoolName"
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.b.h.b, parameter schoolName
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.b.h.b, parameter schoolName
at com.model.login.ProfileData.(ProfileData.kt)
at com.model.login.PaperParcelProfileData$1.createFromParcel(PaperParcelProfileData.java:147)
at com.model.login.PaperParcelProfileData$1.createFromParcel(PaperParcelProfileData.java:59)
at android.os.Parcel.readParcelable(Parcel.java:2367)
at android.os.Parcel.readValue(Parcel.java:2264)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2614)
at android.os.BaseBundle.unparcel(BaseBundle.java:221)
at android.os.Bundle.getParcelable(Bundle.java:786)
at com.ui.profile.c.h.onCreate(ProfileBioFragment.kt:48)
at android.support.v4.app.q.performCreate(Fragment.java:2172)
at android.support.v4.app.w.a(FragmentManager.java:1243)
at android.support.v4.app.w.e(FragmentManager.java:1523)
at android.support.v4.app.w.a(FragmentManager.java:1585)
at android.support.v4.app.w.m(FragmentManager.java:2827)
at android.support.v4.app.q.restoreChildFragmentState(Fragment.java:1289)
at android.support.v4.app.q.onCreate(Fragment.java:1260)
at com.ui.home.y.onCreate(HomeFragment.java:44)
at com.ui.profile.c.f.onCreate(NewProfileFragment.kt:44)
at android.support.v4.app.q.performCreate(Fragment.java:2172)
at android.support.v4.app.w.a(FragmentManager.java:1243)
at android.support.v4.app.w.e(FragmentManager.java:1523)
at android.support.v4.app.w.a(FragmentManager.java:1585)
at android.support.v4.app.w.m(FragmentManager.java:2827)
at android.support.v4.app.q.restoreChildFragmentState(Fragment.java:1289)
at android.support.v4.app.q.onCreate(Fragment.java:1260)
at com.home.y.onCreate(HomeFragment.java:44)
at com.home.NewsFeedViewPagerFragment.onCreate(NewsFeedViewPagerFragment.java:72)
at android.support.v4.app.q.performCreate(Fragment.java:2172)
at android.support.v4.app.w.a(FragmentManager.java:1243)
at android.support.v4.app.w.e(FragmentManager.java:1523)
at android.support.v4.app.w.a(FragmentManager.java:1585)
at android.support.v4.app.w.m(FragmentManager.java:2827)
at android.support.v4.app.t.f(FragmentController.java:190)
at android.support.v4.app.r.onCreate(FragmentActivity.java:353)
at com.home.HomeActivity.onCreate(HomeActivity.java:136)
at android.app.Activity.performCreate(Activity.java:6245)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
The text was updated successfully, but these errors were encountered: