Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332555

Summary: setAttachmentMarshaller on JAXBMarshaller doesn't handle null
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Matt MacIvor CLA 2010-12-14 13:25:52 EST
When setAttachmentMarshaller on JAXBMarshaller is called with a null parameter, the attachment marshaller on the corresponding XMLMarshaller should be nulled out. Currently an AttachmentMarshallerAdapater is created with a null attachment marshaller and is set on the nested XMLMarshaller. This will cause NullPointerExceptions.

This also applies to setAttachmentUnmarshaller on JAXBUnmarshaller.
Comment 1 Matt MacIvor CLA 2010-12-14 15:03:19 EST
Created attachment 185166 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-12-14 16:19:57 EST
Patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:03:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink