Random System.NullReferenceException .Net Maui app under macOS #6645
Labels
platform/macOS 🍏
macOS / Mac Catalyst
s/needs-repro
Attach a solution or code which reproduces the issue
t/bug
Something isn't working
Milestone
Description
macOS, the lates .NET Maui and Visual Studio 2022 Preview as of 04/28/2022
A random System.NullReferenceException thrown when the app is running:
System.NullReferenceException: Object reference not set to an instance of an object.
at at Microsoft.Maui.ElementHandlerExtensions.ToPlatform(IElementHandler elementHandler)
at at Microsoft.Maui.ViewHandlerExtensions.PlatformArrangeHandler(IViewHandler viewHandler, Rect rect)
at at Microsoft.Maui.Controls.Handlers.Compatibility.ViewCellRenderer.ViewTableCell.LayoutSubviews()
at at Microsoft.Maui.Controls.Handlers.Compatibility.CellTableViewCell.GetPlatformCell(UITableView tableView, Cell cell, Boolean recycleCells, String templateId)
at at Microsoft.Maui.Controls.Handlers.Compatibility.ListViewRenderer.ListViewDataSource.GetCell(UITableView tableView, NSIndexPath indexPath)
at at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)
at Fontoscope.Program.Main(String[] args) in .../Platforms/MacCatalyst/Program.cs:13
Steps to Reproduce
The crash happens with no correlation with any specific user action
Version with bug
Release Candidate 1
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
Visual Studio Community 2022 for Mac Preview Version 17.0 Preview (17.0 build 8754)
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: