Skip to content

Null entryName in MyArchive.archiveContents? #14

Description

@dgets

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions