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 | 2027a7d298b5b8073483025137fbc8ccaa17800e (patch) | |
| tree | 7d2e8a0b2b2bb10b27b19887d4390bf5683f1405 /qpid/java/client | |
| parent | d2187456657437a4e1a7ed3dbb4509ed06f3249b (diff) | |
| download | qpid-python-2027a7d298b5b8073483025137fbc8ccaa17800e.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@487636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java b/qpid/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java index 618d290ffd..f69bed0fc0 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/message/JMSMapMessage.java +++ b/qpid/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 |
