Eliminate assumption that item 1 will be a String
This commit is contained in:
parent
2eaa99bb3a
commit
1bc879c30c
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue