mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
fixed npe in tag writer
This commit is contained in:
parent
cce12af766
commit
ad9b9b9096
@ -23,8 +23,12 @@ public class TagWriter {
|
||||
}
|
||||
try {
|
||||
AbstractStanza output = writeQueue.take();
|
||||
outputStream.write(output.toString());
|
||||
outputStream.flush();
|
||||
if (outputStream==null) {
|
||||
shouldStop = true;
|
||||
} else {
|
||||
outputStream.write(output.toString());
|
||||
outputStream.flush();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
shouldStop = true;
|
||||
} catch (InterruptedException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user