HTextView: Crash using EvaporateTextView!

    EvaporateTextView bText = (EvaporateTextView) myInflater.findViewById(R.id.bText);
    bText .animateText("Hi, There!");
      <com.hanks.htextview.evaporate.EvaporateTextView
            android:id="@+id/bText"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:textColor="@color/white"
            android:textSize="20sp" />

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘float android.text.Layout.getLineLeft(int)’ on a null object reference at com.hanks.htextview.evaporate.EvaporateText.animateText(EvaporateText.java:52) at com.hanks.htextview.evaporate.EvaporateTextView.animateText(EvaporateTextView.java:46) at com.swish.perfectshot.fragment.IntroFragment.onCreateView(IntroFragment.java:83)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

clearly, this library can not be used in production, I would think it really needs more time to be fixed, several issues are still unresolved.

I also experienced the same error on version 0.1.0, 0.1.1 and 0.1.2 of the library. I am now going to see if 0.1.6 has the problem fixed…