Changeset 156
- Timestamp:
- 10/17/02 13:55:51 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/j/mail/Mailbox.java
r93 r156 3 3 * 4 4 * Copyright (C) 2000-2002 Peter Graves 5 * $Id: Mailbox.java,v 1. 2 2002-10-11 01:42:37piso Exp $5 * $Id: Mailbox.java,v 1.3 2002-10-17 13:55:51 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 359 359 } 360 360 } 361 for (line = line.next(); line != null; line = line.next()) { 362 if (line instanceof MailboxLine) { 363 MailboxEntry maybe = ((MailboxLine)line).getMailboxEntry(); 364 if (!maybe.isDeleted()) 365 return maybe; 361 if (line != null) { 362 for (line = line.next(); line != null; line = line.next()) { 363 if (line instanceof MailboxLine) { 364 MailboxEntry maybe = ((MailboxLine)line).getMailboxEntry(); 365 if (!maybe.isDeleted()) 366 return maybe; 367 } 366 368 } 367 369 } … … 378 380 } 379 381 } 380 for (line = line.previous(); line != null; line = line.previous()) { 381 if (line instanceof MailboxLine) { 382 MailboxEntry maybe = ((MailboxLine)line).getMailboxEntry(); 383 if (!maybe.isDeleted()) 384 return maybe; 382 if (line != null) { 383 for (line = line.previous(); line != null; line = line.previous()) { 384 if (line instanceof MailboxLine) { 385 MailboxEntry maybe = ((MailboxLine)line).getMailboxEntry(); 386 if (!maybe.isDeleted()) 387 return maybe; 388 } 385 389 } 386 390 }
Note: See TracChangeset
for help on using the changeset viewer.