Skip to content

fix: make get asset not throw if undefined#385

Merged
Exeloo merged 3 commits into
mainfrom
fix/make-get-asset-not-throw-if-undefined
Jul 1, 2026
Merged

fix: make get asset not throw if undefined#385
Exeloo merged 3 commits into
mainfrom
fix/make-get-asset-not-throw-if-undefined

Conversation

@Exeloo

@Exeloo Exeloo commented Jul 1, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Currently, if the path is an empty string or undefined, the getAsset function throws. It may cause problems in the generation when trying to getAsset from an undefined param.

This pr makes the getAsset function return undefined if the path pass in params is undefined or empty string.

How do you test this PR?

@github-actions github-actions Bot added packages:common Related to Common library packages:asset-manager Related to AssetManager library labels Jul 1, 2026
@Exeloo Exeloo merged commit c508d89 into main Jul 1, 2026
@Exeloo Exeloo deleted the fix/make-get-asset-not-throw-if-undefined branch July 1, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages:asset-manager Related to AssetManager library packages:common Related to Common library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants