MaterialChipsInput icon indicating copy to clipboard operation
MaterialChipsInput copied to clipboard

NullpointerException

Open andazlan opened this issue 6 years ago • 1 comments

found error when i type on edittext java.lang.NullPointerException: Attempt to write to field 'int android.view.ViewGroup$MarginLayoutParams.topMargin' on a null object reference at com.pchmn.materialchips.views.FilterableListView.fadeIn(FilterableListView.java:135) at com.pchmn.materialchips.views.FilterableListView$2.onFilterComplete(FilterableListView.java:113) at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:285) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

andazlan avatar Mar 14 '18 03:03 andazlan

I encountered this when I haven't set Filterable List then I type on edit text. So what I did was set a default list for the Filterable List and refresh the list whenever the user types on the edittext.

dmachacon avatar Apr 26 '18 08:04 dmachacon