Skip to content

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

@vitalii-vov

Description

@vitalii-vov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions