### Eclipse Workspace Patch 1.0
#P argouml-app
Index: src/org/argouml/uml/reveng/Import.java
===================================================================
--- src/org/argouml/uml/reveng/Import.java	(revision 16038)
+++ src/org/argouml/uml/reveng/Import.java	(working copy)
@@ -234,8 +234,12 @@
             addSourceEncoding(general);
 
             tab.add(general, Translator.localize("action.import-general"));
-            tab.add(getConfigPanelExtension(),
-                    ((ModuleInterface) getCurrentModule()).getName());
+            
+            ImportInterface current = getCurrentModule();
+            if (current != null) {
+                tab.add(getConfigPanelExtension(),
+                        current.getName());            
+            }
             configPanel = tab;
         }
         return configPanel;
@@ -366,7 +370,11 @@
      * Get the extension panel for the configuration settings.
      */
     private JComponent getConfigPanelExtension() {
-        List<Setting> settings = getCurrentModule().getImportSettings();
+        List<Setting> settings = null;
+        ImportInterface current = getCurrentModule();
+        if (current != null) {
+            settings = current.getImportSettings();
+        }
         return  new ConfigPanelExtension(settings);
     }
 
@@ -504,8 +512,11 @@
         final JFileChooser chooser = new ImportFileChooser(this, directory);
 
         chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
-        updateFilters(chooser, null, getCurrentModule().getSuffixFilters());
-
+        
+        ImportInterface current = getCurrentModule();
+        if (current != null) {
+            updateFilters(chooser, null, current.getSuffixFilters());
+        }
         return chooser;
     }
 
Index: src/org/argouml/uml/ui/ActionImportFromSources.java
===================================================================
--- src/org/argouml/uml/ui/ActionImportFromSources.java	(revision 16038)
+++ src/org/argouml/uml/ui/ActionImportFromSources.java	(working copy)
@@ -72,11 +72,7 @@
      */
     public void actionPerformed(ActionEvent event) {
     	super.actionPerformed(event);
-    	if (ImporterManager.getInstance().hasImporters()) {
-            new Import(ArgoFrame.getInstance());
-    	} else {
-    	    LOG.info("Import sources dialog not shown: no importers!");
-    	}
+        new Import(ArgoFrame.getInstance());
     }
 
     /**
Index: src/org/argouml/uml/reveng/ImportCommon.java
===================================================================
--- src/org/argouml/uml/reveng/ImportCommon.java	(revision 16038)
+++ src/org/argouml/uml/reveng/ImportCommon.java	(working copy)
@@ -107,16 +107,6 @@
                 .getImporters()) {
             modules.put(importer.getName(), importer);
         }
-        if (modules.isEmpty()) {
-            throw new RuntimeException("Internal error. "
-                    + "No importer modules found.");
-        }
-        // "Java" is the default module for historical reasons,
-        // but it's not required to be there
-        currentModule = modules.get("Java");
-        if (currentModule == null) {
-            currentModule = modules.elements().nextElement();
-        }
     }
 
     /*
