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

Fix null asset mapping exception on text unit mapping stage #188

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

mattwilshire
Copy link
Member

@mattwilshire mattwilshire commented Nov 8, 2024

During the text unit mapping stage of a third party sync: If the third party TMS returned a text unit that had an asset path that was never seen in Mojito the mapping would fail as the key would be null which is not allowed in a Map.

The idea was already there to filter out text units that have a null key for their asset but that would never be reached because of the above exception.

This is only really a problem for dev instances (cold starts) that are pushing assets and doing a third party sync where the asset stored in the third party TMS doesn't exist locally.

I have tested this by performing a full third party sync and the hash codes / TMS mappings are present on the text units.

@mattwilshire mattwilshire merged commit 8b9fb5a into master Nov 8, 2024
1 check passed
@mattwilshire mattwilshire deleted the mattwilshire/fix-null-asset-mapping branch November 8, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants