You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to 3.0.15 our iOS app crashed with following stack trace:
System.NullReferenceException: Object reference not set to an instance of an object
at Newtonsoft.Json.Schema.Infrastructure.Licensing.LicenseHelpers.RegisterLicense(string license)
at Newtonsoft.Json.Schema.License.RegisterLicense(string license)
at Company.App.SetupLicenses()
Please note: the actual license string is not null or empty. The code in SetupLicenses verifies that before calling RegisterLicense.
Looking at the code I suspect something to do with reflection related code when trying to get the Assembly or Attribute on iOS.
Please note on iOS the production Xamarin app runs with JIT-ed .NET code and assemblies stripped down to only declarations.
Downgrading to 3.0.14 solved the issue for now.
The text was updated successfully, but these errors were encountered:
rbakhshi
changed the title
NullPointer exception in RegisterLicense on Xamarin.iOS
NullReferenceException in RegisterLicense on Xamarin.iOS
Jun 21, 2023
After upgrading to 3.0.15 our iOS app crashed with following stack trace:
Please note: the actual license string is not null or empty. The code in
SetupLicenses
verifies that before callingRegisterLicense
.Looking at the code I suspect something to do with reflection related code when trying to get the
Assembly
orAttribute
on iOS.Please note on iOS the production Xamarin app runs with JIT-ed .NET code and assemblies stripped down to only declarations.
Downgrading to 3.0.14 solved the issue for now.
The text was updated successfully, but these errors were encountered: