Hello,
I just came across this exception. To duplicate it:
1. Tap inside an SfAutocomplete (auto suggest opens)
2. Without selecting anything press the Next button on the soft keyboard
My XAML is:
<xForms:SfAutoComplete x:Name="LocationAutoComplete"
Margin="3,3,3,0"
DataSource="{Binding LocationAutoCompleteList}"
SelectedItem="{Binding Location, Mode=TwoWay}"
DisplayMemberPath="PlaceName"
Watermark="{shared:Translate Location}"
Style="{StaticResource AutoCompleteEntry}"
ShowSuggestionsOnFocus="True"
ValueChanged="LocationAutoComplete_OnValueChanged">
<xForms:SfAutoComplete.ItemTemplate>
<DataTemplate>
<templates:LocationAutoCompleteTemplate/>
</DataTemplate>
</xForms:SfAutoComplete.ItemTemplate>
</xForms:SfAutoComplete>
The template is just a number of labels in a grid. I think this exception only started when I upgraded the control to the 16.1.0.37. Here is the stack trace:
06-25 09:59:13.448 I/MonoDroid(23633): UNHANDLED EXCEPTION:
06-25 09:59:13.486 I/MonoDroid(23633): System.NullReferenceException: Object reference not set to an instance of an object.
06-25 09:59:13.486 I/MonoDroid(23633): at Com.Syncfusion.Autocomplete.SfAutoComplete.CombineCollections () [0x0000a] in <d5a85f0eac094d82acfc35e9fb0f66b6>:0
06-25 09:59:13.486 I/MonoDroid(23633): at Com.Syncfusion.Autocomplete.SfAutoComplete.GetSelectedData (System.String compareText, System.Boolean selected) [0x00000] in <d5a85f0eac094d82acfc35e9fb0f66b6>:0
06-25 09:59:13.486 I/MonoDroid(23633): at Com.Syncfusion.Autocomplete.SfAutoComplete.SelectedListData (System.Collections.Generic.IEnumerable`1[T] dataItems) [0x0014f] in <d5a85f0eac094d82acfc35e9fb0f66b6>:0
06-25 09:59:13.486 I/MonoDroid(23633): at Com.Syncfusion.Autocomplete.SfAutoComplete.<InitializeEditText>b__447_0 (System.Object sender, Android.Widget.TextView+EditorActionEventArgs e) [0x00033] in <d5a85f0eac094d82acfc35e9fb0f66b6>:0
06-25 09:59:13.486 I/MonoDroid(23633): at Android.Widget.TextView+IOnEditorActionListenerImplementor.OnEditorAction (Android.Widget.TextView v, Android.Views.InputMethods.ImeAction actionId, Android.Views.KeyEvent e) [0x00015] in <1f978e077a40491b9118490f4344ce9f>:0
06-25 09:59:13.486 I/MonoDroid(23633): at Android.Widget.TextView+IOnEditorActionListenerInvoker.n_OnEditorAction_Landroid_widget_TextView_ILandroid_view_KeyEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_v, System.Int32 native_actionId, System.IntPtr native_e) [0x0001a] in <1f978e077a40491b9118490f4344ce9f>:0
06-25 09:59:13.486 I/MonoDroid(23633): at (wrapper dynamic-method) System.Object.9b9aeeaf-f4be-46c9-a365-c1c77b8cc7d2(intptr,intptr,intptr,int,intptr)
06-25 09:59:13.493 D/Mono (23633): Assembly Ref addref HockeySDK.AndroidBindings[0xe27118a0] -> System[0xc3705640]: 25
06-25 09:59:13.520 W/art (23633): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
Thanks,
Jose