Index: src/java/org/apache/nutch/tools/FileDumper.java
===================================================================
--- src/java/org/apache/nutch/tools/FileDumper.java	(revision 1650877)
+++ src/java/org/apache/nutch/tools/FileDumper.java	(working copy)
@@ -113,6 +113,7 @@
    * @throws Exception
    */
   public void dump(File outputDir, File segmentRootDir, String[] mimeTypes) throws Exception {
+    if (mimeTypes == null) LOG.info("Accepting all mimetypes.");
     //total file counts
     Map<String, Integer> typeCounts = new HashMap<String, Integer>();
     //filtered file counts
@@ -128,6 +129,10 @@
             return file.canRead() && file.isDirectory();
           }
         });
+    if (segmentDirs == null) {
+      System.err.println("No segment directories found in [" + segmentRootDir.getAbsolutePath() + "]");
+      return;
+    }
 
     for (File segment : segmentDirs) {
       LOG.info("Processing segment: [" + segment.getAbsolutePath() + "]");
@@ -153,7 +158,7 @@
           String url = key.toString();
           String baseName = FilenameUtils.getBaseName(url);
           String extension = FilenameUtils.getExtension(url);
-          if (extension == null || (extension != null && 
+          if (extension == null || (extension != null &&
               extension.equals(""))){
             extension = "html";
           }
@@ -166,7 +171,7 @@
             String mimeType = new Tika().detect(content.getContent());
             collectStats(typeCounts, mimeType);
             if (mimeType != null) {
-              if (Arrays.asList(mimeTypes).contains(mimeType)) {
+              if (mimeTypes == null || Arrays.asList(mimeTypes).contains(mimeType)) {
                 collectStats(filteredCounts, mimeType);
                 filter = true;
               }
@@ -182,7 +187,6 @@
                 bas.close();
               }
               catch(Exception ignore){}
-              bas = null;
             }
           }
 
@@ -198,7 +202,6 @@
               LOG.info("Skipping writing: ["
                   + outputFullPath + "]: file already exists");
             }
-            content = null;
           }
         }
         reader.close();
@@ -237,7 +240,7 @@
     .create("segment");
     @SuppressWarnings("static-access")
     Option mimeOpt = OptionBuilder.withArgName("mimetype")
-    .hasArgs().withDescription("an optional list of mimetypes to dump, excluding all others")
+    .hasArgs().withDescription("an optional list of mimetypes to dump, excluding all others. Defaults to all.")
     .create("mimetype");
 
     //create the options
@@ -272,6 +275,7 @@
     }
     catch(Exception e) {
       LOG.error("FileDumper: " + StringUtils.stringifyException(e));
+      e.printStackTrace();
       return;
     }
   }
