- // build a new links menu based on the current links + any non-positional
- // features
- Vector<String> nlinks = Preferences.sequenceUrlLinks.getLinksForMenu();
- SequenceFeature sfs[] = sq == null ? null : sq.getSequenceFeatures();
- if (sfs != null)
+
+ /*
+ * build a new links menu based on the current links
+ * and any non-positional features
+ */
+ List<String> nlinks = Preferences.sequenceUrlLinks.getLinksForMenu();
+ for (SequenceFeature sf : sq.getFeatures().getNonPositionalFeatures())