diff --git a/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java b/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java index 985a7d9023982ab9424d3bafff2cd1e01808e0d2..4261727c063f027cd2296f38f627f689bca7273e 100644 --- a/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java +++ b/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java @@ -20,7 +20,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java,v 1.22 2008-04-01 10:14:42 tjc Exp $ + * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/SimpleDocumentEntry.java,v 1.23 2008-04-22 14:28:05 tjc Exp $ */ package uk.ac.sanger.artemis.io; @@ -38,7 +38,7 @@ import javax.swing.JOptionPane; * This class contains the methods common to all DocumentEntry objects. * * @author Kim Rutherford <kmr@sanger.ac.uk> - * @version $Id: SimpleDocumentEntry.java,v 1.22 2008-04-01 10:14:42 tjc Exp $ + * @version $Id: SimpleDocumentEntry.java,v 1.23 2008-04-22 14:28:05 tjc Exp $ **/ abstract public class SimpleDocumentEntry @@ -335,7 +335,7 @@ abstract public class SimpleDocumentEntry while(feature_enum.hasMoreFeatures()) { final Feature new_feature = feature_enum.nextFeature(); - + try { if(force) @@ -357,7 +357,7 @@ abstract public class SimpleDocumentEntry for(int i=0; i<docFeatures.length; i++) add((SimpleDocumentFeature)docFeatures[i]); } - else + else if(docFeature != null) add((SimpleDocumentFeature)docFeature); } }