Skip to Content.
Sympa Menu

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

Subject: OpenSAML user discussion

List archive

[PATCH] NPE in BaseMessageDecoder


Chronological Thread 
  • 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);




Archive powered by MHonArc 2.6.16.

Top of Page