lastrow = (int)(row*sampleRow);\r
lastcol = (int)(col*sampleCol);\r
\r
- color = sr.getResidueBoxColour(\r
+ if(av.alignment.getSequenceAt(lastrow).getLength()>lastcol)\r
+ {\r
+ color = sr.getResidueBoxColour(\r
av.alignment.getSequenceAt(lastrow), lastcol);\r
\r
- if(av.showSequenceFeatures)\r
- {\r
- color = fr.findFeatureColour(color,\r
- av.alignment.getSequenceAt(lastrow),\r
+ if(av.showSequenceFeatures)\r
+ color = fr.findFeatureColour(color, av.alignment.getSequenceAt(lastrow),\r
lastcol);\r
}\r
\r