NullReferenceException when escaping out of autocomplete without anything selected - regression?

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

5 Replies

RB Rabhia Beham Kathar Mideenar Syncfusion Team June 26, 2018 11:55 AM UTC

Hi Jose,

Thanks for contacting Syncfusion Support.

We have checked the reported issue in SfAutoComplete Control. We could not able to reproduce the reported issue. We have fixed the issues related to that of the mentioned issue in Syncfusion Version(16.2.0.41). We have prepared a sample and have checked the issue. Please have the sample from the below link.

Sample Link: http://www.syncfusion.com/downloads/support/forum/138316/ze/SfAutocompleteSample1339182444 

Please upgrade to the latest version(16.2.0.41) and check the issue. If the issue still persists from your side please modify the same with the issue reproducing steps which will be helpful for us to analyse further and provide an appropriate solution.

Please let us know if you have any concern.

Regards,
Rabhia Beham K. 



JO Jose June 26, 2018 03:31 PM UTC

Thanks, I will try that asap.

Jose


RB Rabhia Beham Kathar Mideenar Syncfusion Team June 27, 2018 04:58 AM UTC

Hi Jose,

Thanks for the update.

We will wait until we hear from you. Please let us know if you need any further assistance.

Regards,
Rabhia Beham K.



JO Jose June 27, 2018 08:11 AM UTC

Hi Rhabia,

I upgraded to 16.2.0.41 and the issue is solved, thanks. I had to uninstall the app from the phone and clear all bin and obj folders (just for reference).

Jose


RB Rabhia Beham Kathar Mideenar Syncfusion Team June 28, 2018 04:35 AM UTC

Hi Jose,

Thanks for the update.

We are glad that you have achieved your requirement. Please let us know if you need any further assistance.

Regards,
Rabhia Beham K.


Loader.
Up arrow icon