mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-18 06:45:06 -05:00
another rare npe fixed
This commit is contained in:
parent
b2cc17c362
commit
510d8a2ae3
@ -416,8 +416,14 @@ public class XmppConnection implements Runnable {
|
||||
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()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user