Skip to content
Snippets Groups Projects
Commit f7420c9c authored by tcarver's avatar tcarver
Browse files

ignore attributes with null values

parent c3f70910
No related branches found
No related tags found
No related merge requests found
......@@ -129,9 +129,9 @@ public class GFF3AttributeBuilder {
} else {
targetAttrs.add(attr);
}
// drop attributes with empty values
if (val.size() == 1
&& val.elementAt(0).replaceAll("\\s+", "").equals(""))
// drop attributes with null or empty values
if (val == null || (val.size() == 1
&& val.elementAt(0).replaceAll("\\s+", "").equals("")) )
return;
// process expanded list of attributes
for (String this_attr : targetAttrs) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment