mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix CID 1386104 (Dereference null return value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
4bebf3a5a3
commit
2a30d77d75
@ -96,6 +96,10 @@ public class ScrollView {
|
||||
!socket.isOutputShutdown() &&
|
||||
socket.isConnected() && socket.isBound()) {
|
||||
inputLine = receiveMessage();
|
||||
if (inputLine == null) {
|
||||
// End of stream reached.
|
||||
break;
|
||||
}
|
||||
nrInputLines++;
|
||||
if (debugViewNetworkTraffic) {
|
||||
System.out.println("(c->S," + nrInputLines + ")" + inputLine);
|
||||
|
Loading…
Reference in New Issue
Block a user