Ryosuke839 / UnicodePad

An Android App that enables input every character in Unicode
https://play.google.com/store/apps/details?id=jp.ddo.hotmist.unicodepad
Apache License 2.0
315 stars 32 forks source link

CRASH: NullPointerException in UnicodeAdapter.destroy #18

Open Ryosuke839 opened 6 years ago

Ryosuke839 commented 6 years ago

The following code sometimes causes NullPointerException.

grid.setOnScrollListener(null);
java.lang.NullPointerException: 
  at jp.ddo.hotmist.unicodepad.FindAdapter.destroy (FindAdapter.java:124)
  at jp.ddo.hotmist.unicodepad.PageAdapter.destroyItem (PageAdapter.java:158)
  at android.support.v4.view.ViewPager.dataSetChanged (ViewPager.java:1071)
  at android.support.v4.view.ViewPager$PagerObserver.onChanged (ViewPager.java:3113)
  at android.support.v4.view.PagerAdapter.notifyDataSetChanged (PagerAdapter.java:284)
  at jp.ddo.hotmist.unicodepad.PageAdapter.notifyDataSetChanged (PageAdapter.java:120)
  at jp.ddo.hotmist.unicodepad.UnicodeActivity.onActivityResult (UnicodeActivity.java:401)