Crash on backspace in empty AutoComplete Box (iOS and custom keyboards only)

Hello,
I am experiencing a crash on iOS only, on custom keyboards only (tried SwiftKey and Google keyboards), when I clear an AutoComplete box that is already empty. The crash report is below:

Application Specific Information:
*** Terminating app due to uncaught exception 'System.ArgumentOutOfRangeException', reason: 'System.ArgumentOutOfRangeException: Length cannot be less than zero.'

Xamarin Exception Stack:
Parameter name: length
  at System.String.Substring (System.Int32 startIndex, System.Int32 length) <0x100dd3d60 + 0x0011c> in <d680a8bf3a2a4c8dbbfde665ba81f6f2#57a88b0cbe98a20078d7564eabbd03ab>:0 
  at Syncfusion.SfAutoComplete.iOS.SfAutoComplete.Handle_ShouldChangeCharacters (UIKit.UITextField textField, Foundation.NSRange range, System.String replacementString) <0x10250e640 + 0x00263> in <a3dc1f22890a4adfb7e53b272e33476c#57a88b0cbe98a20078d7564eabbd03ab>:0 
  at UIKit.UITextField+_UITextFieldDelegate.ShouldChangeCharacters (UIKit.UITextField textField, Foundation.NSRange range, System.String replacementString) <0x101825ff0 + 0x0004b> in <e0596b82250c450abdf075bc558add28#57a88b0cbe98a20078d7564eabbd03ab>:0 
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) <0x101812410 + 0x0002b> in <e0596b82250c450abdf075bc558add28#57a88b0cbe98a20078d7564eabbd03ab>:0 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x101812350 + 0x000ab> in <e0596b82250c450abdf075bc558add28#57a88b0cbe98a20078d7564eabbd03ab>:0 
  at MyApp.iOS.Application.Main (System.String[] args) <0x100d3aaf0 + 0x00023> in <62f1933eca254656975e3b1f6983a6f0#57a88b0cbe98a20078d7564eabbd03ab>:0

Can you please assist me with this?

Thanks,
Jon

1 Reply

RB Rabhia Beham Kathar Mideenar Syncfusion Team March 29, 2018 09:55 AM UTC

Hi Jon,

We have checked the reported issue in SfAutoComplete Control. We could able to reproduce the issue and we are currently working on the reported issue and the fix will be included in Volume 1 Sp 2 Release which is expected to be rolled out by the end of April 2018.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.

Loader.
Up arrow icon