another rare npe fixed

This commit is contained in:
iNPUTmice 2014-08-14 09:59:41 +02:00
parent b2cc17c362
commit 510d8a2ae3
1 changed files with 6 additions and 0 deletions

View File

@ -416,8 +416,14 @@ public class XmppConnection implements Runnable {
NoSuchAlgorithmException { NoSuchAlgorithmException {
tagReader.readTag(); // read tag close tagReader.readTag(); // read tag close
if (!tagWriter.isActive()) {
throw new IOException();
}
tagWriter.setOutputStream(new ZLibOutputStream(tagWriter tagWriter.setOutputStream(new ZLibOutputStream(tagWriter
.getOutputStream())); .getOutputStream()));
if (tagReader.getInputStream() == null) {
throw new IOException();
}
tagReader tagReader
.setInputStream(new ZLibInputStream(tagReader.getInputStream())); .setInputStream(new ZLibInputStream(tagReader.getInputStream()));