diff --git a/uk/ac/sanger/artemis/components/FeaturePopup.java b/uk/ac/sanger/artemis/components/FeaturePopup.java index d48bf8ba84347f923ecf2c9c55985e6228c01641..7bd2beb090d0bbeeec6394eefbb5a9aa99dec0d0 100644 --- a/uk/ac/sanger/artemis/components/FeaturePopup.java +++ b/uk/ac/sanger/artemis/components/FeaturePopup.java @@ -150,7 +150,15 @@ public class FeaturePopup extends JPopupMenu miValidate.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent arg0) { - new ValidateViewer(getEntryGroup(), selection.getSelectedFeatures()); + if(selection.getAllFeatures().size() < 1) + { + JOptionPane.showMessageDialog( + owner.getParentFrame(), + "No features selected to validate.", "Select Features", + JOptionPane.INFORMATION_MESSAGE); + return; + } + new ValidateViewer(getEntryGroup(), selection.getAllFeatures()); } }); maybeAdd(miValidate);