X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fdatamodel%2FSequenceFeature.java;fp=src%2Fjalview%2Fdatamodel%2FSequenceFeature.java;h=8f82a1afd7d4b9853be493ff9b88075ae100fef9;hb=3fce1409d8d49829024e566325b6cf96008fa2a2;hp=a2d91b1e75b08e952539236cbae4251d8c5373ba;hpb=b14c392ce90ae1b3be98562b6043fed65152249b;p=jalview.git diff --git a/src/jalview/datamodel/SequenceFeature.java b/src/jalview/datamodel/SequenceFeature.java index a2d91b1..8f82a1a 100755 --- a/src/jalview/datamodel/SequenceFeature.java +++ b/src/jalview/datamodel/SequenceFeature.java @@ -55,7 +55,7 @@ public class SequenceFeature implements FeatureLocationI // private key for ENA location designed not to conflict with real GFF data private static final String LOCATION = "!Location"; - private static final String ROW_DATA = "%s%s%s"; + private static final String ROW_DATA = "%s%s%s"; /* * map of otherDetails special keys, and their value fields' delimiter @@ -179,6 +179,8 @@ public class SequenceFeature implements FeatureLocationI this(newType, sf.getDescription(), newBegin, newEnd, newScore, newGroup); + this.source = sf.source; + if (sf.otherDetails != null) { otherDetails = new HashMap(); @@ -660,9 +662,10 @@ public class SequenceFeature implements FeatureLocationI return true; } - FeatureAttributeType attributeType = metadata.getAttributeType(key); - if (attributeType == FeatureAttributeType.Float - || attributeType.equals(FeatureAttributeType.Integer)) + FeatureAttributeType attType = metadata.getAttributeType(key); + if (attType != null + && (attType == FeatureAttributeType.Float || attType + .equals(FeatureAttributeType.Integer))) { try {