mace-opensaml-users - [PATCH] NPE in BaseMessageDecoder
Subject: OpenSAML user discussion
List archive
- From: Frank Cornelis <>
- To:
- Subject: [PATCH] NPE in BaseMessageDecoder
- Date: Wed, 29 Aug 2007 14:23:47 +0200
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);
- [PATCH] NPE in BaseMessageDecoder, Frank Cornelis, 08/29/2007
- Re: [PATCH] NPE in BaseMessageDecoder, Chad La Joie, 08/29/2007
Archive powered by MHonArc 2.6.16.