Skip to content
Snippets Groups Projects
Commit 5a94f3e3 authored by cramakri's avatar cramakri
Browse files

MINOR : Skip empty managed properties in the yeastlab script to avoid triggering an NPE.

SVN: 28688
parent 69dd2a2a
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,8 @@ def json_encoded_children_from_link_props(entity, link_props):
children = []
converter = ManagedPropertyFunctions.xmlPropertyConverter()
for prop in link_props:
if entity.getPropertyValue(prop) is None:
continue
elements = converter.convertStringToElements(entity.getPropertyValue(prop))
children.extend([element.getAttribute("permId") for element in elements])
return json_encoded_value(children)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment