dgets / RAS

Recursive Archive Scanner
1 stars 0 forks source link

Null entryName in MyArchive.archiveContents? #14

Open dgets opened 6 years ago

dgets commented 6 years ago

En route to #12, it has become apparent that something is messed up with my recursion algorithm. It is resulting in the following stack trace:

java.lang.NullPointerException
    at MyArchive.unroll(MyArchive.java:201)
    at RAS.main(RAS.java:68)

The applicable code is where entryName appears in the following for loop:

        if (Debugging.UNROLL) {
            //list directory contents
            System.out.println(arcFileName + " contents:");
            for (String entryName : archiveContents) {
                System.out.println(entryName);
            }
        }

Fix it, detc...