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

Fatal Exception: java.lang.NullPointerException #110

Open
Eternalculture opened this issue Mar 12, 2020 · 6 comments
Open

Fatal Exception: java.lang.NullPointerException #110

Eternalculture opened this issue Mar 12, 2020 · 6 comments

Comments

@Eternalculture
Copy link

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'int android.text.Layout.getLineCount()' on a null object

com.hanks.htextview.fade.FadeText.drawFrame (FadeText.java:108)
com.hanks.htextview.base.HText.onDraw (HText.java:114)
com.hanks.htextview.fade.FadeTextView.onDraw (FadeTextView.java:63)
android.view.View.draw (View.java:17469)
......................................................................

Any way to fix this issue?

@TikTak123
Copy link

I have same problem
This is my issue in github
#109

@Eternalculture
Copy link
Author

@TikTak123
As I know, android.text.Layout.getLineLeft issue was fixed in v0.1.6.
Make sure you have updated your dependency to v0.1.6.

But I have a crash issue in android.text.Layout.getLineCount in v0.1.6.

@TikTak123
Copy link

I checked my build.gradle file.
I have the lastest version of this library.
This from build.gradle file

def htextview_version = "0.1.6"
implementation "com.hanks:htextview-base:$htextview_version"
implementation "com.hanks:htextview-scale:$htextview_version"

@Eternalculture
Copy link
Author

Eternalculture commented Mar 18, 2020

@TikTak123 Ah, I thought 85ebe93 has been already committed in the lastest version. But actualy it has not.

I finally decided to manually include the library in my project and fixed the bugs for each NullPointerException issues.

@AbhijeetGhosh
Copy link

Can you help me out? How to did you error manually or otherwise

@TikTak123
Copy link

@AbhijeetGhosh I don't know how to reproduce this. When I use my app this error never occur. But crashlytics log show me that errors.

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