< prev index next >

src/java.base/share/classes/sun/net/www/content/text/plain.java

Print this page

        

@@ -38,13 +38,10 @@
      * can be read.
      */
     public Object getContent(URLConnection uc) {
         try {
             InputStream is = uc.getInputStream();
-            if (is == null) {
-                is = InputStream.nullInputStream();
-            }
             return new PlainTextInputStream(is);
         } catch (IOException e) {
             return "Error reading document:\n" + e.toString();
         }
     }
< prev index next >