Skip to content

Commit

Permalink
Do not inadvertently unset metadata keys and values
Browse files Browse the repository at this point in the history
This is the root cause of #8445.  See also
5cc196d.
  • Loading branch information
melissalinkert committed Apr 5, 2012
1 parent 5cc196d commit 2dd95c9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/bio-formats/src/loci/formats/in/IvisionReader.java
Expand Up @@ -365,11 +365,13 @@ else if ("iplab:Objective_RI".equals(key)) {
}

public void characters(char[] ch, int start, int length) {
String v = new String(ch, start, length);
if ("key".equals(currentElement)) {
key = v;
String v = new String(ch, start, length).trim();
if (v.length() > 0) {
if ("key".equals(currentElement)) {
key = v;
}
else value = v;
}
else value = v;
}

public void startElement(String uri, String localName, String qName,
Expand Down

0 comments on commit 2dd95c9

Please sign in to comment.