Changeset 27


Ignore:
Timestamp:
10/02/02 18:00:46 (20 years ago)
Author:
piso
Message:

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

File:
1 edited

Legend:

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

    r26 r27  
    33 *
    44 * Copyright (C) 2000-2002 Peter Graves
    5  * $Id: NntpSession.java,v 1.2 2002-10-02 17:50:35 piso Exp $
     5 * $Id: NntpSession.java,v 1.3 2002-10-02 18:00:46 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    188188        writeLine("GROUP " + groupName);
    189189        String response = readLine();
     190        if (response == null)
     191            return false;
    190192        if (!response.startsWith("211"))
    191193            return false;
Note: See TracChangeset for help on using the changeset viewer.