public void mouseClicked(MouseEvent evt)
{
+ SequenceGroup sg=null;
SequenceI sequence = av.alignment.getSequenceAt(findSeq(evt));
if (evt.getClickCount() > 1)
{
- if (av.getSelectionGroup().getSize() == 1
- && av.getSelectionGroup().getEndRes()
- - av.getSelectionGroup().getStartRes() < 2)
+ sg = av.getSelectionGroup();
+ if (sg!=null && sg.getSize() == 1
+ && sg.getEndRes()
+ - sg.getStartRes() < 2)
{
av.setSelectionGroup(null);
}