• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.clients
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 5612

Show
Ignore:
Timestamp:
09/15/08 17:13:52 (2 months ago)
Author:
will
Message:

Fixed bug, throwing Runtime error with no : in getOntologyIdFromTermId(term) caused problems. Now just return null.

Files:
1 modified

  • branches/ProtocolEditor/src/ols/Ontologies.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • branches/ProtocolEditor/src/ols/Ontologies.java

    r5184 r5612  
    178178                int colonIndex = termId.indexOf(":"); 
    179179                if (colonIndex < 1) { 
    180                         throw new RuntimeException("Ontology term Id didn't contain : "); 
     180                        return null; 
    181181                }  
    182182                return termId.substring(0, colonIndex); 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/