Changeset 244


Ignore:
Timestamp:
11/14/02 15:36:35 (21 years ago)
Author:
piso
Message:

restore(): don't log an error if file doesn't exist.

File:
1 edited

Legend:

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

    r241 r244  
    33 *
    44 * Copyright (C) 1998-2002 Peter Graves
    5  * $Id: Session.java,v 1.2 2002-11-13 01:07:23 piso Exp $
     5 * $Id: Session.java,v 1.3 2002-11-14 15:36:35 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    196196    public Buffer restore()
    197197    {
     198        if (file == null) {
     199            Debug.bug();
     200            return null;
     201        }
     202        if (!file.isFile())
     203            return null;
    198204        if (!load()) {
    199205            Log.error("Session.restore unable to load " + file);
Note: See TracChangeset for help on using the changeset viewer.