Skip to content
Snippets Groups Projects
Commit 459474f3 authored by tjc's avatar tjc
Browse files

intialise in getSegmentRangeStore if store is null

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5262 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 1cb13231
No related branches found
No related tags found
No related merge requests found
......@@ -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/GFFStreamFeature.java,v 1.44 2006-11-21 16:34:51 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/io/GFFStreamFeature.java,v 1.45 2007-01-30 17:26:13 tjc Exp $
*/
package uk.ac.sanger.artemis.io;
......@@ -40,7 +40,7 @@ import java.text.SimpleDateFormat;
* A StreamFeature that thinks it is a GFF feature.
*
* @author Kim Rutherford
* @version $Id: GFFStreamFeature.java,v 1.44 2006-11-21 16:34:51 tjc Exp $
* @version $Id: GFFStreamFeature.java,v 1.45 2007-01-30 17:26:13 tjc Exp $
**/
public class GFFStreamFeature extends SimpleDocumentFeature
......@@ -290,6 +290,12 @@ public class GFFStreamFeature extends SimpleDocumentFeature
public Hashtable getSegmentRangeStore()
{
if(id_range_store == null)
{
id_range_store = new Hashtable();
id_range_store.put((String)this.getQualifierByName("ID").getValues().get(0),
this.getLocation().getTotalRange());
}
return id_range_store;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment