diff --git a/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/view/ImporterUIElementLight.java b/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/view/ImporterUIElementLight.java index 6fbf4faa7..0903a9b19 100644 --- a/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/view/ImporterUIElementLight.java +++ b/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/view/ImporterUIElementLight.java @@ -272,9 +272,12 @@ private void updateGUI() { @Override void showFailures() { - JFrame f = ImporterAgent.getRegistry().getTaskBar().getFrame(); - FailedImportDialog d = new FailedImportDialog(f, getMarkedFiles()); - UIUtilities.centerAndShow(d); + Collection components = getMarkedFiles(); + if (components != null && components.size() > 0) { + JFrame f = ImporterAgent.getRegistry().getTaskBar().getFrame(); + FailedImportDialog d = new FailedImportDialog(f, components); + UIUtilities.centerAndShow(d); + } } @Override