MaterialChipsInput icon indicating copy to clipboard operation
MaterialChipsInput copied to clipboard

Null pointer exception when try to set chips on text changed

Open munirchauhan opened this issue 7 years ago • 3 comments

Process: com.pchmn.sample.materialchipsinput, PID: 23129 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:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

munirchauhan avatar Oct 09 '17 16:10 munirchauhan

Any news on this bug?

juandavidGF avatar Feb 16 '18 22:02 juandavidGF

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

bump. I tried @dmachacon 's suggestion but I am still getting the error, albeit intermittently

manbradcalf avatar Nov 30 '18 23:11 manbradcalf