If a gene name contains a colon Solr queries searching for the gene fail

Description

The problem is in GeneNomenclature.java, the code there is

1 2 3 final String id = StringUtils.contains(symbol, SEPARATOR) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol;

which results in a blank symbol if there is nothing after the separator (which is a colon ":"). It should be fixed to be something like:

1 2 3 final String id = StringUtils.contains(symbol, SEPARATOR) && !StringUtils.isBlank(StringUtils.substringAfter(symbol, SEPARATOR)) ? StringUtils.substringAfter(symbol, SEPARATOR) : symbol;

Environment

None

Status

Assignee

Andrew Misyura

Reporter

Andrew Misyura

Labels

None

External issue ID

None

External issue ID

None

Fix versions

Affects versions

1.4.5

Priority

Medium