Changeset 15458


Ignore:
Timestamp:
10/29/20 16:55:02 (2 years ago)
Author:
Mark Evenson
Message:

Guard against null reference when determing *LOAD-TRUENAME*

File:
1 edited

Legend:

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

    r15457 r15458  
    548548                  // We set *LOAD-TRUENAME* to the argument that a
    549549                  // user would pass to LOAD.
    550                   truePathname = (Pathname)probe_file.PROBE_FILE.execute(pathname);
     550                  LispObject possibleTruePathname = probe_file.PROBE_FILE.execute(pathname);
     551                  if (!possibleTruePathname.equals(NIL)) {
     552                    truePathname = (Pathname) possibleTruePathname;
     553                  }
    551554                  /*
    552555                  if (truePathname.getDevice().cdr() != NIL ) {
Note: See TracChangeset for help on using the changeset viewer.