JDK 9 RFR of 8056205: (fs) Potential for NPE in Files.walkFileTree if closing directory fails

Brian Burkhalter brian.burkhalter at oracle.com
Wed Dec 21 17:52:31 UTC 2016

Please review this simple fix at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8056205
Patch:	http://cr.openjdk.java.net/~bpb/8056205/webrev.00/

Correct an obviously erroneous block of the form:

	if (x != null) {
		x = y;
	} else {
		x.someMethod(y); // guaranteed NPE



More information about the nio-dev mailing list