Uploaded image for project: 'UY'
  1. UY
  2. UY-1011

Optional image attribute does not allow for missing value

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: v3.2.1
    • Labels:
      None

      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/:?]

        Attachments

          Activity

            People

            • Assignee:
              golbi Krzysztof Benedyczak
              Reporter:
              golbi Krzysztof Benedyczak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: