6907660: stupid typo in ZipFileIndex guarantees NPE
authorjjg
Mon, 07 Dec 2009 14:35:07 -0800
changeset 4418 7c5fe46dd6c5
parent 4417 fc5cc811d2dd
child 4419 4cc85c49c3da
child 4547 5c18795ef8e4
6907660: stupid typo in ZipFileIndex guarantees NPE Reviewed-by: darcy
langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java
--- a/langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java	Thu Dec 03 14:03:53 2009 -0800
+++ b/langtools/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java	Mon Dec 07 14:35:07 2009 -0800
@@ -1002,7 +1002,7 @@
                         // Do nothing
                     } finally {
                         try {
-                            if (raf == null) {
+                            if (raf != null) {
                                 raf.close();
                             }
                         } catch (Throwable t) {