afriscic / BarcodeScanning.Native.Maui

Barcode scanning library for .NET MAUI
https://www.nuget.org/packages/BarcodeScanning.Native.Maui
MIT License
162 stars 31 forks source link

Fix iOS Null Reference Exceptions when using Simulator #7

Closed ToastinYou closed 10 months ago

ToastinYou commented 10 months ago

When using the iOS Simulator the simulated device has no camera components and causes the capture device to return null, which is not being handled properly. This change prevents the code from continuing if there is no capture device.

afriscic commented 10 months ago

I'll merge this commits next week with upgrade to .NET 8

afriscic commented 10 months ago

Should be resolved in .NET 8 update