PayCardsPlugin icon indicating copy to clipboard operation
PayCardsPlugin copied to clipboard

System.NullReferenceException iOS

Open ennerperez opened this issue 5 years ago • 0 comments

🐛 Bug Report

[0:] System.NullReferenceException: Object reference not set to an instance of an object. at Plugin.PayCards.RecognizerViewController.ViewWillAppear (System.Boolean animated) [0x00042] in /Users/runner/work/1/s/PayCards/RecognizerViewController.ios.cs:54 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) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.4.1.3/src/Xamarin.iOS/UIKit/UIApplication.cs:86 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.4.1.3/src/Xamarin.iOS/UIKit/UIApplication.cs:65

[0:] An error occurred: 'Object reference not set to an instance of an object.'. Callstack: ' at Plugin.PayCards.RecognizerViewController.ViewWillAppear (System.Boolean animated) [0x00042] in /Users/runner/work/1/s/PayCards/RecognizerViewController.ios.cs:54 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) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.4.1.3/src/Xamarin.iOS/UIKit/UIApplication.cs:86 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.4.1.3/src/Xamarin.iOS/UIKit/UIApplication.cs:65 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 ' The app has been terminated.

Expected behavior

Works on iOS

Reproduction steps

Install Nuget > Put a button to, call to ScanAsync();

Configuration

Version: 1.1.1

Platform:

  • [x] :iphone: iOS
  • [ ] :robot: Android
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [x] :monkey: Xamarin.Forms

ennerperez avatar Nov 23 '20 17:11 ennerperez