We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe7225a commit 3128243Copy full SHA for 3128243
1 file changed
src/ubic/basecode/ontology/providers/AbstractOntologyService.java
@@ -466,8 +466,8 @@ private void initSearchByAlternativeId() {
466
private OntologyTerm getTermInternal( String uri ) {
467
return termCache.computeIfAbsent( uri, u -> {
468
OntClass ontCls = model.getOntClass( u );
469
- // bnode
470
- if ( ontCls.getURI() == null ) {
+ // null or bnode
+ if ( ontCls == null || ontCls.getURI() == null ) {
471
return null;
472
}
473
return new OntologyTermImpl( ontCls );
0 commit comments