Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gmarbury opened this issue Jul 25, 2024 · 0 comments

Comments

@gmarbury
Copy link

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 gmarbury changed the title [BUG] Object reference not set to an instance of an object. [BUG] Object reference not set to an instance of an object when UseMauiCompatibility is enabled Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant