Minor clean up and bug fix.
[gcc.git] / libjava / gnu / gcj / io / MimeTypes.java
index 36d3eb86f1463e031a1f75a44e09b22ac8f2a325..f4a114bf9e89222f10cb1fc343fc5f25e117f303 100644 (file)
@@ -36,7 +36,7 @@ public class MimeTypes
                  {
                    // Read the next extension
                    String e = tokenizer.nextToken ();
-                   if (! e.startsWith ("#"))
+                   if ((e != null) && (! e.startsWith ("#")))
                      table.put (e, t);
                    else
                      break;