-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN-6664: Fix crash when no asm is found. #14958
Conversation
UI Smoke TestsTest: success. 2 passed, 0 failed. |
{ | ||
handler(new WorkspacesSettingsChangedEventArgs(enableLegacyPolyCurveBehavior)); | ||
} | ||
catch (NullReferenceException) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is null in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it hard to add a test for this? I would not have expected this to need a try catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something inside LibG because ASM is missing. I think this fix is the best one for 3.0.4 as I don't think we want to add paneling in 3.0.4. That being said, for master, I could go ahead and fix this in LibG and then remove this try/catch when the new LibG version with that fix is integrated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think mGeometryFactory
is null in this line when ASM is not found.
Purpose
DYN-6664: Fix crash when no asm is found.
A crash still happens when a Dyn file is opened when no ASM is found. This can also be fixed in LibG but fixing it here simplifies the removal of ASM229 in 3.0.4 (where we have no panelling support). This fix works for all version of LibG for ASM230.
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
(FILL ME IN) Brief description of the fix / enhancement. Mandatory section
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of