1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

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());