Skip to content
Snippets Groups Projects
Commit d7d8e1c1 authored by juanf's avatar juanf
Browse files

SSDM-4016 : Bugfix, allow null registration dates (should not happen, but it happens)

SVN: 36896
parent 3fd98e4c
No related branches found
No related tags found
No related merge requests found
......@@ -409,8 +409,10 @@ def getTXT(entityObj, v3, sessionToken):
if not isinstance(entityObj, Project):
txtBuilder.append("Type: " + entityObj.getType().getCode()).append("\n");
txtBuilder.append("Registrator: ").append(entityObj.getRegistrator().getUserId()).append("\n");
txtBuilder.append("Registration Date: ").append(str(entityObj.getRegistrationDate())).append("\n");
if(entityObj.getRegistrator() is not None):
txtBuilder.append("Registrator: ").append(entityObj.getRegistrator().getUserId()).append("\n");
txtBuilder.append("Registration Date: ").append(str(entityObj.getRegistrationDate())).append("\n");
if entityObj.getModifier() is not None:
txtBuilder.append("Modifier: ").append(entityObj.getModifier().getUserId()).append("\n");
txtBuilder.append("Modification Date: ").append(str(entityObj.getModificationDate())).append("\n");
......
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