Skip to content

Commit

Permalink
Merge pull request #511 from DMTF/OData-Type-Hardening
Browse files Browse the repository at this point in the history
Corrected link traversal logic when objects or arrays of objects are 'null'
  • Loading branch information
mraineri authored Aug 12, 2022
2 parents 286b30a + 63cd12a commit 5104799
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redfish_service_validator/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,8 @@ def getLinks(self):
links.append(item)
elif item.Type.getBaseType()[0] == 'complex':
for sub in item.Collection:
if sub.Value is None:
continue
InAnnotation = sub.Name in ['@Redfish.Settings', '@Redfish.ActionInfo', '@Redfish.CollectionCapabilities']
my_links = sub.getLinks()
for item in my_links:
Expand Down

0 comments on commit 5104799

Please sign in to comment.