Skip to content

MediaElement in CollectionView in TabView will throw exception in iOS and Mac #391

Description

@jingliancui

Description

Please see the reproduce

Steps to Reproduce

  1. Clone source code from https://github.com/jingliancui/TabViewMediumElementIssue
  2. Open code using vs code
  3. Debug it in Mac or iOS device(my device is iphone12)

Result:
Exception throw:
An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.iOS.dll: 'The current view controller cannot be detected.'

Expect:
Should not throw exception

.NET Version

.NET 10.0

Version with bug

1.0.7

Is this a regression from previous behavior?

Not sure, haven't tested other versions

Last Known Working Version

Not sure

Affected platforms

iOS

Affected Platform Versions

No response

Have you found a workaround?

No

Relevant log output

An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.iOS.dll: 'The current view controller cannot be detected.'

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions