Fix bug which prevents the parsing of the InterPro XML file
commit244ba412853bef84a1ab899d755f5a2b764edbca
authorDuke Leto <jonathan@leto.net>
Fri, 16 Jul 2010 20:55:45 +0000 (16 13:55 -0700)
committerRobert Buels <rmb32@cornell.edu>
Tue, 20 Jul 2010 02:02:18 +0000 (19 19:02 -0700)
tree52e8336ad266590b778e6db8bb4ec0f662e3b04e
parent8ecdf9043b15e07313de93dbb17f6b4b2ef50c93
Fix bug which prevents the parsing of the InterPro XML file

Currently the code does not check if subject_term or object_term are undef before
calling methods on them, so parsing the interpo.xml from ftp://ftp.ebi.ac.uk/pub/databases/interpro/
fails with calling a method on an undefined value.

I ran xmllint on the interpro.xml and it does indeed seem to be valid according to the DTD.
Bio/Ontology/SimpleOntologyEngine.pm