Skip to content

Commit

Permalink
Adds check if specificAssetIds is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzi committed Jan 15, 2025
1 parent 2d204ba commit eeaa54e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public AssetKind mapAssetKind(org.eclipse.digitaltwin.aas4j.v3.model.AssetKind a
* @return the mapped specificAssetIds
*/
public List<SpecificAssetId> mapSpecificAssetIds(List<org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId> specificAssetIds) {
if (specificAssetIds == null) {
if (specificAssetIds == null || specificAssetIds.isEmpty()) {
return null;
}
List<org.eclipse.digitaltwin.basyx.aasregistry.client.model.SpecificAssetId> mappedSpecificAssetIds = new ArrayList<>();
Expand Down

0 comments on commit eeaa54e

Please sign in to comment.