Skip to content

Null entryName in MyArchive.archiveContents? #14

@dgets

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions