Changeset 14496


Ignore:
Timestamp:
05/11/13 12:19:08 (9 years ago)
Author:
Mark Evenson
Message:

Guard against uninitialized message in a java.lang.Throwable passed to StreamError?.

Found while diagnosing problems with Hunchentoot with keep-alive
connections (private email).

Probably should be applied to all constructors derived from LispError?
as they would all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/StreamError.java

    r14466 r14496  
    106106        super(StandardClass.STREAM_ERROR);
    107107        setStream(stream != null ? stream : NIL);
    108         setFormatControl(cause.getMessage());
     108        String message = cause.getMessage();
     109        setFormatControl(message != null ? message : cause.toString());
    109110        setFormatArguments(NIL);
    110111        this.cause = cause;
Note: See TracChangeset for help on using the changeset viewer.