diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2006-12-15 19:48:27 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2006-12-15 19:48:27 +0000 |
commit | 638512ff4576f3d317915da9cfedf296e21b82e6 (patch) | |
tree | 672f54019e2133b5ddaba537ad1453b3f0210c0e /java | |
parent | faed4832ea9c4bc039103c1bbf95eb38ff4d2171 (diff) | |
download | qpid-python-638512ff4576f3d317915da9cfedf296e21b82e6.tar.gz |
reinstating the fix for QPID-191 that was wiped out as a result of another fix
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@487636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java b/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java index 618d290ffd..f69bed0fc0 100644 --- a/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java +++ b/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java @@ -129,7 +129,16 @@ public class JMSMapMessage extends JMSBytesMessage implements javax.jms.MapMessa public char getChar(String string) throws JMSException { - return _properties.getCharacter(string); + Character result = _properties.getCharacter(string); + + if (result == null) + { + throw new NullPointerException("getChar couldn't find " + string + " item."); + } + else + { + return result; + } } public int getInt(String string) throws JMSException |