Skip to content

Commit 2a30d77

Browse files
committed
Fix CID 1386104 (Dereference null return value)
Signed-off-by: Stefan Weil <[email protected]>
1 parent 4bebf3a commit 2a30d77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/com/google/scrollview/ScrollView.java

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ private static void IOLoop() {
9696
!socket.isOutputShutdown() &&
9797
socket.isConnected() && socket.isBound()) {
9898
inputLine = receiveMessage();
99+
if (inputLine == null) {
100+
// End of stream reached.
101+
break;
102+
}
99103
nrInputLines++;
100104
if (debugViewNetworkTraffic) {
101105
System.out.println("(c->S," + nrInputLines + ")" + inputLine);

0 commit comments

Comments
 (0)