Skip to content
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

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])' on a null object reference #286

Open
3 tasks
FranPR9 opened this issue Sep 25, 2019 · 6 comments

Comments

@FranPR9
Copy link

FranPR9 commented Sep 25, 2019

Make sure these boxes are checked before submitting your issue - thank you!

  • Check in the issue tracker whether
    this issue wasn't already reported.
  • If it's a bug report check that clear steps to reproduce,
    stacktrace, expected behaviour and other needed details are provided.
  • Feature requests contain a description of the feature
    you're requesting as well as a brief scenario explaining
    under what circumstances this might be useful.
@FranPR9
Copy link
Author

FranPR9 commented Sep 25, 2019

hi, my activity is unable to start because an error inflating the stepperlayout.
It started yesterday sep/24/2019. today sep/25/2019 I have 2019.
Captura

this is the log of the error;
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[])' on a null object reference
at androidx.core.graphics.TypefaceCompatApi21Impl.newFamily + 116(TypefaceCompatApi21Impl.java:116)
at androidx.core.graphics.TypefaceCompatApi21Impl.createFromFontFamilyFilesResourceEntry + 176(TypefaceCompatApi21Impl.java:176)
at androidx.core.graphics.TypefaceCompat.createFromResourcesFamilyXml + 116(TypefaceCompat.java:116)
at androidx.core.content.res.ResourcesCompat.loadFont + 415(ResourcesCompat.java:415)
at androidx.core.content.res.ResourcesCompat.loadFont + 361(ResourcesCompat.java:361)
at androidx.core.content.res.ResourcesCompat.getFont + 339(ResourcesCompat.java:339)
at androidx.appcompat.widget.TintTypedArray.getFont + 119(TintTypedArray.java:119)
at androidx.appcompat.widget.AppCompatTextHelper.updateTypefaceAndStyle + 265(AppCompatTextHelper.java:265)
at androidx.appcompat.widget.AppCompatTextHelper.loadFromAttributes + 177(AppCompatTextHelper.java:177)
at androidx.appcompat.widget.AppCompatButton. + 77(AppCompatButton.java:77)
at androidx.appcompat.widget.AppCompatButton. + 67(AppCompatButton.java:67)
at androidx.appcompat.app.AppCompatViewInflater.createButton + 187(AppCompatViewInflater.java:187)
at androidx.appcompat.app.AppCompatViewInflater.createView + 110(AppCompatViewInflater.java:110)
at androidx.appcompat.app.AppCompatDelegateImpl.createView + 1266(AppCompatDelegateImpl.java:1266)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView + 1316(AppCompatDelegateImpl.java:1316)
at android.view.LayoutInflater.createViewFromTag + 772(LayoutInflater.java:772)
at android.view.LayoutInflater.createViewFromTag + 730(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate + 863(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren + 824(LayoutInflater.java:824)
at android.view.LayoutInflater.rInflate + 866(LayoutInflater.java:866)
at android.view.LayoutInflater.inflate + 489(LayoutInflater.java:489)
at java.lang.reflect.Method.invoke(Method)
at java.lang.reflect.Method.invoke(Method)
at java.lang.reflect.Method.invoke(Method)
at android.view.LayoutInflater.inflate + 423(LayoutInflater.java:423)
at com.stepstone.stepper.StepperLayout.init + 746(StepperLayout.java:746)
at com.stepstone.stepper.StepperLayout. + 292(StepperLayout.java:292)
at java.lang.reflect.Constructor.newInstance0(Constructor.java)
at java.lang.reflect.Constructor.newInstance + 334(Constructor.java:334)
at android.view.LayoutInflater.createView + 647(LayoutInflater.java:647)
at android.view.LayoutInflater.createViewFromTag + 790(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag + 730(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate + 863(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren + 824(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate + 515(LayoutInflater.java:515)
at java.lang.reflect.Method.invoke(Method)
at java.lang.reflect.Method.invoke(Method)
at java.lang.reflect.Method.invoke(Method)
at android.view.LayoutInflater.inflate + 423(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate + 374(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView + 469(AppCompatDelegateImpl.java:469)
at androidx.appcompat.app.AppCompatActivity.setContentView + 140(AppCompatActivity.java:140)
at androidx.databinding.DataBindingUtil.setContentView + 303(DataBindingUtil.java:303)
at androidx.databinding.DataBindingUtil.setContentView + 284(DataBindingUtil.java:284)
at mx.weex.appwallet.activity.RegisterActivity.onCreate + 99(RegisterActivity.java:99)
at android.app.Activity.performCreate + 7025(Activity.java:7025)
at android.app.Activity.performCreate + 7016(Activity.java:7016)
at android.app.Instrumentation.callActivityOnCreate + 1217(Instrumentation.java:1217)
at android.app.ActivityThread.performLaunchActivity + 2812(ActivityThread.java:2812)
at android.app.ActivityThread.handleLaunchActivity + 2955(ActivityThread.java:2955)
at android.app.ActivityThread.-wrap12()
at android.app.ActivityThread$H.handleMessage + 1650(ActivityThread.java:1650)
at android.os.Handler.dispatchMessage + 106(Handler.java:106)
at android.os.Looper.loop + 164(Looper.java:164)
at android.app.ActivityThread.main + 6747(ActivityThread.java:6747)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run + 455(RuntimeInit.java:455)
at com.android.internal.os.ZygoteInit.main + 807(ZygoteInit.java:807)
at java.lang.reflect.Method.invoke(Method)

@FranPR9
Copy link
Author

FranPR9 commented Oct 4, 2019

Does this error has to do with androidX??

@FranPR9
Copy link
Author

FranPR9 commented Oct 4, 2019

I have this version in my gradle:
com.stepstone.stepper:material-stepper:4.3.1

@felixdivo
Copy link

Does this error has to do with androidX??

It generally works with AndroidX in my App

@abhivinny
Copy link

abhivinny commented Jan 16, 2020

I have this version in my gradle:
com.stepstone.stepper:material-stepper:4.3.1

Did you find the reason?

@FranPR9
Copy link
Author

FranPR9 commented May 3, 2020

Not really, I implemented my own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants