From f7c747ef4b496df77388872c750bf95100991c76 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Fri, 15 Aug 2014 13:34:55 +0200 Subject: better handling of null streams --- src/eu/siacs/conversations/xmpp/XmppConnection.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/eu/siacs/conversations/xmpp') 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())); -- cgit v1.2.3