Skip to content

fix crash for UPS due to json conversion error for null value in weightUnit#180

Merged
itsvic-dev merged 1 commit intoitsvic-dev:masterfrom
stendler:fix/179-ups
Oct 30, 2025
Merged

fix crash for UPS due to json conversion error for null value in weightUnit#180
itsvic-dev merged 1 commit intoitsvic-dev:masterfrom
stendler:fix/179-ups

Conversation

@stendler
Copy link
Contributor

fix crash for UPS due to json conversion error for null value in weightUnit

-> make the weightUnit optional (nullable) and do not list it as a metadata property in the view if it is null

closes #179


For the future, defensive error handling should be added to avoid crashes caused by unversioned proprietary APIs suddenly changing

…htUnit

-> make the weightUnit optional (nullable) and do not list it as a metadata property in the view if it is null

TODO: add defensive error handling to avoid crashes like that in the future, caused by unversioned proprietary APIs suddenly changing
Copy link
Owner

@itsvic-dev itsvic-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@itsvic-dev itsvic-dev merged commit d8a26fc into itsvic-dev:master Oct 30, 2025
2 checks passed
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.

App crashes for UPS package

2 participants

Comments