Changeset 26


Ignore:
Timestamp:
10/02/02 17:50:35 (20 years ago)
Author:
piso
Message:

getArticle(): avoid NPE if readLine() returns null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/mail/NntpSession.java

    r2 r26  
    33 *
    44 * Copyright (C) 2000-2002 Peter Graves
    5  * $Id: NntpSession.java,v 1.1.1.1 2002-09-24 16:10:09 piso Exp $
     5 * $Id: NntpSession.java,v 1.2 2002-10-02 17:50:35 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    101101        writeLine("ARTICLE ".concat(String.valueOf(articleNumber)));
    102102        String response = readLine();
     103        if (response == null)
     104            return null;
    103105        if (!response.startsWith("220"))
    104106            return null;
Note: See TracChangeset for help on using the changeset viewer.