aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-15 13:34:55 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-15 13:34:55 +0200
commitf7c747ef4b496df77388872c750bf95100991c76 (patch)
treec566a4dc6e4f28ecd2324116c81a2418b2e666de /src/eu/siacs/conversations/xmpp
parent9c18d57e07dd7c2e45482f5b03534dc1d3999456 (diff)
better handling of null streams
Diffstat (limited to 'src/eu/siacs/conversations/xmpp')
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index d8c9f4b9d..c83f39a8d 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -415,15 +415,8 @@ public class XmppConnection implements Runnable {
throws XmlPullParserException, IOException,
NoSuchAlgorithmException {
tagReader.readTag(); // read tag close
-
- if (!tagWriter.isActive()) {
- throw new IOException();
- }
tagWriter.setOutputStream(new ZLibOutputStream(tagWriter
.getOutputStream()));
- if (tagReader.getInputStream() == null) {
- throw new IOException();
- }
tagReader
.setInputStream(new ZLibInputStream(tagReader.getInputStream()));