Prism icon indicating copy to clipboard operation
Prism copied to clipboard

[BUG] Object reference not set to an instance of an object when UseMauiCompatibility is enabled

Open gmarbury opened this issue 1 year ago • 0 comments

Description

Run the sample at this repo https://github.com/giuseppenovielli/Prism-MAUI-Samples

image

Steps to Reproduce

  1. Download sample code from https://github.com/giuseppenovielli/Prism-MAUI-Samples
  2. Run the Windows version of the project
  3. See the error

Platform with bug

.NET MAUI

Affected platforms

Android, Windows, I was not able test on other platforms

Did you find any workaround?

No

Relevant log output

Stack trace
  at Microsoft.UI.Xaml.Window.get_ThisPtr()
   at Microsoft.UI.Xaml.Window.op_Equality(Window x, Window y)
   at Microsoft.UI.Xaml.Window.op_Inequality(Window x, Window y)
   at Microsoft.Maui.Controls.Compatibility.Forms.SetupInit(IMauiContext mauiContext, Window mainWindow, IEnumerable`1 rendererAssemblies, Nullable`1 maybeOptions)
   at Microsoft.Maui.Controls.Compatibility.Forms.Init(IActivationState state, Nullable`1 options)
   at Microsoft.Maui.Controls.Compatibility.Hosting.AppHostBuilderExtensions.<>c.<OnConfigureLifeCycle>b__1_0(Application app, LaunchActivatedEventArgs args)
   at Microsoft.Maui.MauiWinUIApplication.<>c__DisplayClass1_0.<OnLaunched>b__2(OnLaunching del)
   at Microsoft.Maui.LifecycleEvents.LifecycleEventServiceExtensions.InvokeLifecycleEvents[TDelegate](IServiceProvider services, Action`1 action)
   at Microsoft.Maui.MauiWinUIApplication.OnLaunched(LaunchActivatedEventArgs args)

gmarbury avatar Jul 25 '24 19:07 gmarbury