Skip to content

Commit c36cc70

Browse files
committed
Merge branch 'hotfix-1.1.1'
2 parents f4665bc + 9d79a3e commit c36cc70

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<name>baseCode</name>
66
<groupId>baseCode</groupId>
77
<artifactId>baseCode</artifactId>
8-
<version>1.1</version>
8+
<version>1.1.1</version>
99
<inceptionYear>2003</inceptionYear>
1010
<description>
1111
<![CDATA[Data structures, math and statistics tools, and utilities that are often needed across projects.]]>

src/ubic/basecode/ontology/model/OntologyTermImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ private void getChildren( boolean direct, Collection<OntologyTerm> work ) {
385385
ExtendedIterator<OntClass> iterator = ontResource.listSubClasses( true );
386386
while ( iterator.hasNext() ) {
387387
OntClass c = iterator.next();
388+
// URI can be null if the ont is a bnode (no idea what it is, but we have to handle this)
388389
// some reasoners will infer owl#Nothing as a subclass of everything
389-
if ( c.getURI().equals( NOTHING ) ) continue;
390+
if ( c.getURI() == null || c.getURI().equals( NOTHING ) ) continue;
390391

391392
if ( USE_PROPER_PART_RESTRICTIONS && c.isRestriction() ) {
392393

0 commit comments

Comments
 (0)