<div dir="ltr"><font face="monospace, monospace">Dear All,</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">To whom it may concern, I would like to report a Bug I encounter in Bioformats.</font></div><div><font face="monospace, monospace">The following exception is thrown by Fiji:</font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">java.lang.StringIndexOutOfBoundsException: String index out of range: -1</font></div></div><div><div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>at java.lang.String.substring(String.java:1937)</font></div></div><div><div><font face="monospace, monospace"><span class="" style="white-space:pre"> </span>at loci.formats.in.LiFlimReader.initOriginalMetadata(LiFlimReader.java:334)</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I have a .fli file with the following header entry:</font></div><div><font face="monospace, monospace"><span style="white-space:pre"> </span>'LockExposureTime = 0'<br></font></div><div><font face="monospace, monospace">and while looking at the code in LiFlimReader.java I think that this conflicts with to following:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">315<span style="white-space:pre"> </span>else if (metaKey.endsWith("ExposureTime")) {</font></div><div><font face="monospace, monospace">316<span style="white-space:pre"> </span><span style="white-space:pre"> </span>int space = value.indexOf(" ");</font></div><div><font face="monospace, monospace">317<span style="white-space:pre"> </span><span style="white-space:pre"> </span><span style="white-space:pre"> </span>double expTime = Double.parseDouble(value.substring(0, space));</font></div><div><font face="monospace, monospace">318<span style="white-space:pre"> </span><span style="white-space:pre"> </span>String units = value.substring(space + 1).toLowerCase();</font></div><div><font face="monospace, monospace">319<span style="white-space:pre"> </span><span style="white-space:pre"> </span>if (units.equals("ms")) {</font></div><div><font face="monospace, monospace">320<span style="white-space:pre"> </span><span style="white-space:pre"> </span><span style="white-space:pre"> </span><span style="white-space:pre"> </span>expTime /= 1000;</font></div><div><font face="monospace, monospace">321<span style="white-space:pre"> </span><span style="white-space:pre"> </span>}</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">I think for future releases of Bioformats this still can cause a conflict in case a different Header entry ends with "ExposureTime"</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Please contact me for further questions and I will be looking forward to receiving a reply.</font></div><div><font face="monospace, monospace"><br clear="all"></font><div><div class="gmail_signature"><div dir="ltr"><font face="monospace, monospace"><span style="font-size:12.8px">With best regards,</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Johan Herz, Sales Engineer </span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Tel: +31-50-501-8461 | Skype: lambert-johan</span><br style="font-size:12.8px"><span style="font-size:12.8px">Lambert Instruments BV|Leonard Springerlaan 19 (5th floor)|9727 KB Groningen|The Netherlands</span><br style="font-size:12.8px"><span style="font-size:12.8px">Dutch Chamber of Commerce nr.: 52396940 | </span><a href="http://www.lambertinstruments.com/" style="font-size:12.8px" target="_blank">www.lambertinstruments.com</a></font><br></div></div></div>
</div></div>