This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 7a4d356d70c5871c7efd33adcd29fcf99642a0cf Author: Mark Thomas <ma...@apache.org> AuthorDate: Sat Sep 16 09:57:16 2023 +0100 Fix SpotBugs warning --- test/org/apache/tomcat/websocket/server/TesterWsClient.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/org/apache/tomcat/websocket/server/TesterWsClient.java b/test/org/apache/tomcat/websocket/server/TesterWsClient.java index c90aa23ed6..5c47dd21c7 100644 --- a/test/org/apache/tomcat/websocket/server/TesterWsClient.java +++ b/test/org/apache/tomcat/websocket/server/TesterWsClient.java @@ -76,6 +76,9 @@ public class TesterWsClient { BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); String line = in.readLine(); // line expected to be "HTTP/1.1 nnn " + if (line == null) { + throw new IOException("No response line"); + } int result = Integer.parseInt(line.substring(9, 12)); while (line != null && !line.isEmpty()) { line = in.readLine(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org