/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
}
}
- if (isIncludeDescription() && regex.search(seq.getDescription()))
+ if (isIncludeDescription() && seq.getDescription() != null
+ && regex.search(seq.getDescription()))
{
idMatch.addElement(seq);
hasResults = true;
{
continue;
}
-
+ // if invalid string used, then regex has no matched to/from
int sres = seq
.findPosition(resIndex
+ Integer.parseInt(spaces.elementAt(resIndex)