diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2013-01-15 17:02:01 +0000 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2013-01-15 17:02:01 +0000 |
commit | e7452daaeadbeccad135862eb23b4a4cc2f78d4c (patch) | |
tree | 9d77de4d9c2d5399d9f2afd0274333bd87c74dd5 /src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java | |
parent | 3b3d60f89bc9390962eec2531ba09e1854c3761f (diff) | |
download | jitsi-e7452daaeadbeccad135862eb23b4a4cc2f78d4c.zip jitsi-e7452daaeadbeccad135862eb23b4a4cc2f78d4c.tar.gz jitsi-e7452daaeadbeccad135862eb23b4a4cc2f78d4c.tar.bz2 |
Avoid NPE if an XMPPError is not present in an XMPPException
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java index b4d8e52..48804f3 100644 --- a/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java @@ -627,9 +627,10 @@ public class OperationSetFileTransferJabberImpl XMPPError error = ((XMPPException)jabberTransfer.getException()) .getXMPPError(); - if(error.getCode() == 406 - || error.getCode() == 403) - status = FileTransferStatusChangeEvent.REFUSED; + if (error != null) + if(error.getCode() == 406 + || error.getCode() == 403) + status = FileTransferStatusChangeEvent.REFUSED; } statusReason = jabberTransfer.getException().getMessage(); |