Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [PATCH] NPE in BaseMessageDecoder

Subject: OpenSAML user discussion

List archive

Re: [PATCH] NPE in BaseMessageDecoder


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [PATCH] NPE in BaseMessageDecoder
  • Date: Wed, 29 Aug 2007 08:32:02 -0400
  • Openpgp: id=A260F52E; url=http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0x3F5E9E87A260F52E
  • Organization: Georgetown University

Applied. Thanks.

Frank Cornelis wrote:
> Hi,
>
>
> The following patch fixes an NPE in the BaseMessageDecoder when
> encountering a missing unmarshaller.
>
>
> Regards,
> Frank.
>
>
> Index: src/org/opensaml/ws/message/decoder/BaseMessageDecoder.java
> ===================================================================
> --- src/org/opensaml/ws/message/decoder/BaseMessageDecoder.java
> (revision 129)
> +++ src/org/opensaml/ws/message/decoder/BaseMessageDecoder.java
> (working
> copy)
> @@ -142,6 +142,8 @@
> if (unmarshaller == null) {
> log.error("Unable to unmarshall message, no
> unmarshaller registered for message element "
> + XMLHelper.getNodeQName(messageElem));
> + throw new MessageDecodingException("Unable to
> unmarshall message, no unmarshaller registered for message element "
> + + XMLHelper.getNodeQName(messageElem));
> }
>
> XMLObject message = unmarshaller.unmarshall(messageElem);

--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware 202.687.0124



Archive powered by MHonArc 2.6.16.

Top of Page