Changeset 5756


Ignore:
Timestamp:
12/18/09 12:25:59 (10 years ago)
Author:
melissa
Message:

Throw FormatException if XML is malformed. Closes #449.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/OMEXMLReader.java

    r5749 r5756  
    261261 
    262262    DefaultHandler handler = new OMEXMLHandler(); 
    263     XMLTools.parseXML(in, handler); 
     263    try { 
     264      XMLTools.parseXML(in, handler); 
     265    } 
     266    catch (IOException e) { 
     267      throw new FormatException("Malformed OME-XML", e); 
     268    } 
    264269 
    265270    if (binDataOffsets.size() == 0) { 
Note: See TracChangeset for help on using the changeset viewer.