-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix: Fix crash when deleting a folder of assets #2673
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
Conversation
LGTM! Thoughts? |
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.
Probably a good fix, but uncertain about one particular line.
sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs
Outdated
Show resolved
Hide resolved
sources/assets/Stride.Core.Assets.Quantum/AssetCompositeHierarchyPropertyGraph.cs
Outdated
Show resolved
Hide resolved
sources/assets/Stride.Core.Assets/AssetReferenceDataSerializer.cs
Outdated
Show resolved
Hide resolved
sources/assets/Stride.Core.Assets/AssetReferenceDataSerializer.cs
Outdated
Show resolved
Hide resolved
It would be pretty (for my eyes) to squash all the commits into one when merging.
|
Removing the null check in I checked inside Stride by removing different default assets folders, adding assets, et cetera. Seems to be working now. Ready for an other review. |
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.
It's likely there is a bug somewhere else as I don't think enumerating the parts should give one without a base.
Anyway, as it is the fix is a good double-check even if we manage to find the source of the problem later.
PR Details
Fixes a crash (specifically Null Reference exceptions) when deleting a folder filled with model assets, specifically "BlocksPrefabs" folder in a new project using asset packs.
This is a duct-tape-y fix, I'm not fully aware if this could break other things - despite just null checks and validation being written.
Related Issue
None, didn't bother to create a issue linked to this.
Types of changes
Stacktrace of solved exception
How to reproduce:
Checklist