Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Object reference not set to an instance of an object when page is modal #201

Open
1 of 2 tasks
vitalii-vov opened this issue Jun 22, 2023 · 0 comments
Open
1 of 2 tasks

Comments

@vitalii-vov
Copy link

Description

Application crashes when clicking on PickerCell on a modal page

[0:] An error occurred: 'Object reference not set to an instance of an object.'. Callstack: '  at AiForms.Renderers.iOS.PickerCellView+<>c__DisplayClass7_0.<RowSelected>b__0 () <0x1590925f8 + 0x00012> in <f5227f85c64b46059135f65acfa7ba9f>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void()
  at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.6/src/Xamarin.iOS/Foundation/NSAction.cs:150 
--- End of stack trace from previous location where exception was thrown ---

  at (wrapper managed-to-native) UIKit.UIApplication.xamarin_UIApplicationMain(int,intptr,intptr,intptr,intptr&)
  at UIKit.UIApplication.UIApplicationMain (System.Int32 argc, System.String[] argv, System.IntPtr principalClassName, System.IntPtr delegateClassName) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.6/src/Xamarin.iOS/UIKit/UIApplication.cs:58 
  at UIKit.UIApplication.Main (System.String[] args, System.Type principalClass, System.Type delegateClass) [0x0003b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.6/src/Xamarin.iOS/UIKit/UIApplication.cs:94 
  at Mcs.XF.HealthExpress.iOS.Application.Main (System.String[] args) [0x00001] in D:\Projects\MCS\Mcs.XF.HealthExpress\Mcs.XF.HealthExpress.iOS\Main.cs:17 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 '

Steps to Reproduce

  1. Navigate to settings page like await _navigation.PushModalAsync(new SettingsPage());
  2. Click to PickerCell
  3. App will crash

Expected Behavior

App not crash

Actual Behavior

App crash

Platforms

  • Android
  • iOS

Basic Information

  • AiForms.SettingsView 1.3.33
  • Xamarin.Forms 5.0.0.2578
  • Affected Devices: iPad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant