Skip to content

Commit

Permalink
fix ontology search, handle non-oboprefix ontologies
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpich authored and rtaylorzfin committed Nov 1, 2023
1 parent 0e98421 commit 7c211ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/org/zfin/gwt/root/server/LookupRPCServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private SuggestOracle.Response getOntologySuggestions(SuggestOracle.Request requ
List<SuggestOracle.Suggestion> suggestions = new ArrayList<>(NUMBER_OF_SUGGESTIONS);
if (query.length() > 2) {
String oboIdPrefix = ontology.getOboIdPrefix();
if (query.startsWith(oboIdPrefix)) {
if (oboIdPrefix != null && query.startsWith(oboIdPrefix)) {
TermDTO termDTO = OntologyManager.getInstance().getTermByID(query, DTOConversionService.convertToOntologyDTO(ontology));
MatchingTerm term = new MatchingTerm(termDTO, termDTO.getTermName());
StringBuilder builder = getStringBuilder(term, termDTO.getTermName());
Expand Down

0 comments on commit 7c211ad

Please sign in to comment.