Eliminate assumption that item 1 will be a String

This commit is contained in:
Daniel Applebaum 2009-01-07 06:37:44 +00:00
parent 2eaa99bb3a
commit 1bc879c30c

View file

@ -337,7 +337,7 @@ public class ImapResponseParser {
}
public String getAlertText() {
if (size() > 1 && "[ALERT]".equals(getString(1))) {
if (size() > 1 && "[ALERT]".equals(get(1))) {
StringBuffer sb = new StringBuffer();
for (int i = 2, count = size(); i < count; i++) {
sb.append(get(i).toString());