Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Feature/fix npe in case there is no metadata #38

Merged
merged 4 commits into from
Mar 1, 2024

Conversation

saschadoemer
Copy link
Collaborator

No description provided.

The method metadataAsJson() in Attribute.java has been updated to handle null and empty metadata by returning an empty string. Previously, if metadata was null or empty, an error could occur when attempting to parse it.
The version number of the application has been updated from 10.0.0 to 10.1.0 in the pom.xml file, indicating new adjustments or features have been implemented. This version change reflects updates to the application's functionality.
…e. The appropriate commit message for the diff code would be:

Add metadata to DeviceMeasurementBuilder

Moved the instantiation of the metadata ArrayList in DeviceMeasurementBuilder. Now, it gets populated with "dateObservedMetadata" before handling additional metadata entries, ensuring "dateObservedMetadata" will always be part of the metadata list regardless of whether there are additional entries or not.
Changed the name of the variable handling measurements from 'attribute' to 'measurement' in DeviceMeasurementBuilder class. This makes the usage clearer and more consistent with the logical function in the code context.
@saschadoemer saschadoemer merged commit a0366a7 into main Mar 1, 2024
1 check passed
@saschadoemer saschadoemer deleted the feature/fix-npe-in-case-there-is-no-metadata branch March 1, 2024 20:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant