Optional image attribute does not allow for missing value

Description

Affects in the first place registration and enquiry forms. Applicable both to legacy jpegImage and the new image syntaxes.

 

java.lang.NullPointerException: null at pl.edu.icm.unity.stdext.attr.ImageAttributeSyntax.convertToString(ImageAttributeSyntax.java:54) ~[classes/:?] at pl.edu.icm.unity.stdext.attr.ImageAttributeSyntax.convertToString(ImageAttributeSyntax.java:1) ~[classes/:?] at pl.edu.icm.unity.webui.common.attributes.image.UnityImageValueEditor.getCurrentValue(UnityImageValueEditor.java:48) ~[classes/:?] at pl.edu.icm.unity.webui.common.attributes.edit.InternalAttributeValueEditor.getValue(InternalAttributeValueEditor.java:64) ~[classes/:?] at pl.edu.icm.unity.webui.common.attributes.edit.InternalAttributeValueEditor.getValue(InternalAttributeValueEditor.java:1) ~[classes/:?] at pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub$Entry.getElement(ListOfEmbeddedElementsStub.java:257) ~[classes/:?] at pl.edu.icm.unity.webui.common.ListOfEmbeddedElementsStub.getElements(ListOfEmbeddedElementsStub.java:171) ~[classes/:?] at pl.edu.icm.unity.webui.common.attributes.edit.FixedAttributeEditor.getAttribute(FixedAttributeEditor.java:96) ~[classes/:?] at pl.edu.icm.unity.webui.forms.BaseRequestEditor.setRequestAttributes(BaseRequestEditor.java:322) ~[classes/:?] at pl.edu.icm.unity.webui.forms.BaseRequestEditor.fillRequest(BaseRequestEditor.java:218) ~[classes/:?] at pl.edu.icm.unity.webui.forms.reg.RegistrationRequestEditor.getRequest(RegistrationRequestEditor.java:167) ~[classes/:?] at pl.edu.icm.unity.webui.forms.reg.RegistrationRequestEditor.getRequest(RegistrationRequestEditor.java:1) ~[classes/:?] at pl.edu.icm.unity.webui.forms.BaseRequestEditor.getRequestWithStandardErrorHandling(BaseRequestEditor.java:178) ~[classes/:?] at pl.edu.icm.unity.webui.forms.reg.StandaloneRegistrationView.onSubmit(StandaloneRegistrationView.java:322) ~[classes/:?]

Environment

None

Activity

Show:
Krzysztof
updated the ReporterSeptember 15, 2020 at 10:48 AM
Krzysztof Benedyczak
Krzysztof
Krzysztof
changed the AssigneeSeptember 15, 2020 at 10:20 AM
Krzysztof Benedyczak
Krzysztof
Krzysztof Benedyczak
changed the StatusMarch 14, 2020 at 4:02 PM
Done
Done
Krzysztof Benedyczak
changed the StatusMarch 14, 2020 at 4:02 PM
In Progress
Done
Krzysztof Benedyczak
updated the ResolutionMarch 14, 2020 at 4:02 PM
None
Done
Krzysztof Benedyczak
changed the StatusMarch 14, 2020 at 1:55 PM
Selected for Development
In Progress
Krzysztof Benedyczak
changed the StatusMarch 12, 2020 at 11:28 AM
Backlog
Selected for Development
Krzysztof Benedyczak
created the IssueMarch 12, 2020 at 11:28 AM
Done

Details

Assignee

Krzysztof

Reporter

Fix versions

Priority

Created March 12, 2020 at 11:28 AM
Updated September 15, 2020 at 10:48 AM
Resolved March 14, 2020 at 4:02 PM