Skip to content

debug model can catch exception ,but release app crash #7870

Open
@292390450

Description

@292390450

Android application type

Android for .NET (net6.0-android, etc.)

Affected platform version

vs2022 17.6.0 preview1.0 .net7

Description

my appwill initially connect to the signalr service, because the server address is misconfigured, the connection will fail and throw an exception, this exception can be caught, AppRuntime.LoginUser is not assigned its null and then a mistake in the program that does not reference the object to the instance will cause the program to crash. All null reference exceptions cause the program to crash.
the LoginUser isnull An exception is thrown
image

The uncomfortable thing is that it works correctly in debug mode.

Steps to Reproduce

AOT is not turned on

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions