diff -r e747d3193ef2 -r 65ddd8f149f3 jdk/src/share/classes/sun/net/httpserver/Request.java --- a/jdk/src/share/classes/sun/net/httpserver/Request.java Mon Oct 27 14:02:40 2008 +0100 +++ b/jdk/src/share/classes/sun/net/httpserver/Request.java Tue Oct 28 16:14:51 2008 +0000 @@ -53,7 +53,7 @@ do { startLine = readLine(); /* skip blank lines */ - } while (startLine.equals ("")); + } while (startLine == null ? false : startLine.equals ("")); }