<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">In the process of working with the Flex reader and finding a temporary solution, I have found what may be a bug:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="text-autospace:none"><u><span style="font-size:10.0pt;font-family:Consolas;color:#0066CC">java.lang.IndexOutOfBoundsException</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">: Index: 1, Size: 1</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.util.ArrayList.rangeCheck(Unknown Source)</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.util.ArrayList.get(Unknown Source)</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at ome.xml.model.Pixels.getChannel(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:#0066CC">Pixels.java:573</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at ome.xml.meta.OMEXMLMetadataImpl.getChannelName(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:#0066CC">OMEXMLMetadataImpl.java:1053</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><span style="font-size:10.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.gnf.HCIReaders.HCIReaderOpera.setWellImagesProps(</span><u><span style="font-size:10.0pt;font-family:Consolas;color:#0066CC">HCIReaderOpera.java:161</span></u><span style="font-size:10.0pt;font-family:Consolas;color:red">)</span><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">In the past the &nbsp;<span style="font-size:10.0pt;font-family:Consolas;color:red">ome.xml.model.Pixels.getChannel()</span> returned null if it did not exist. I have figured out that in my case, I need to invert
<span style="font-size:9.0pt;font-family:&quot;Courier New&quot;;color:#353833;background:white">
int&nbsp;imageIndex, int&nbsp;channelIndex</span>, which is probably caused by the bug in handling the flex format from v2.0. &nbsp;However, I think that either the out-of bound exception should be handled internally and that the value null should be returned (I think this
 was the default behavior), or that the method should throw an error of its own, which a programmer would know to handle externally.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Ghislain Bonamy, PhD<o:p></o:p></span></p>
</div>
</body>
</html>