I've built a small application that uses the excellent SearchView component.
All is fine in debug mode.
The component is added in the designer.
However when I run the application in Release mode, and the activity where the component is used is started I get this error.
What could be wrong ?
All is fine in debug mode.
The component is added in the designer.
However when I run the application in Release mode, and the activity where the component is used is started I get this error.
B4X:
searchview_et_textchanged (java line: 152)
java.lang.RuntimeException: Object should first be initialized (ListView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:50)
at anywheresoftware.b4a.objects.ListViewWrapper.Clear(ListViewWrapper.java:197)
at vlassak.verhulst.searchview._et_textchanged(searchview.java:152)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.objects.EditTextWrapper$1.afterTextChanged(EditTextWrapper.java:83)
at android.widget.TextView.sendAfterTextChanged(TextView.java:8203)
at android.widget.TextView.setText(TextView.java:4489)
at android.widget.TextView.setText(TextView.java:4337)
at android.widget.EditText.setText(EditText.java:89)
at android.widget.TextView.setText(TextView.java:4312)
at android.widget.TextView.setTransformationMethod(TextView.java:1936)
at android.widget.TextView.applySingleLine(TextView.java:7884)
at android.widget.TextView.setInputType(TextView.java:4684)
at anywheresoftware.b4a.objects.EditTextWrapper.setInputType(EditTextWrapper.java:187)
at vlassak.verhulst.searchview._initialize(searchview.java:189)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at vlassak.verhulst.main._loadmainscreen(main.java:935)
at vlassak.verhulst.main._jobdone(main.java:834)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1135)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
What could be wrong ?