Skip to content

Commit ab30367

Browse files
committed
updated OutputStreamThread.java
1 parent 3f8c99e commit ab30367

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/de/javasocketapi/core/OutputStreamThread.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ public void run() {
3939
continue;
4040
}
4141
//get next packet available to send
42-
Packet packet = this.packets.get(0);
42+
Packet packet = null;
43+
try {
44+
packet = this.packets.get(0);
45+
} catch (NullPointerException ignored) {
46+
}
4347
//check if packet is valid
4448
if (packet != null) {
4549
//remove packet

0 commit comments

Comments
 (0)