Changeset 15038


Ignore:
Timestamp:
06/03/17 04:36:02 (6 years ago)
Author:
Mark Evenson
Message:

Fix NPE if directory can't be accessed.
(Olof-Joachim Frahm)

C.f. <http://abcl.org/trac/ticket/233>.

From
<https://github.com/Ferada/abcl/commit/bdce7703a044b9ce5b02f3af87af309395e2f30e>.

File:
1 edited

Legend:

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

    r15032 r15038  
    16681668                    try {
    16691669                        File[] files = f.listFiles();
     1670                        if (files == null) {
     1671                            return error(new FileError("Unable to list directory "
     1672                                                       + pathname.princToString() + ".",
     1673                                                       pathname));
     1674                        }
    16701675                        for (int i = files.length; i-- > 0;) {
    16711676                            File file = files[i];
Note: See TracChangeset for help on using the changeset viewer.