6907660: stupid typo in ZipFileIndex guarantees NPE

Mon, 07 Dec 2009 14:35:07 -0800

author
jjg
date
Mon, 07 Dec 2009 14:35:07 -0800
changeset 444
ea89c5d4af08
parent 443
121e0ebf1658
child 445
ceb2857fce7d
child 449
ff823a039e16

6907660: stupid typo in ZipFileIndex guarantees NPE
Reviewed-by: darcy

src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java	Thu Dec 03 14:03:53 2009 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/javac/file/ZipFileIndex.java	Mon Dec 07 14:35:07 2009 -0800
     1.3 @@ -1002,7 +1002,7 @@
     1.4                          // Do nothing
     1.5                      } finally {
     1.6                          try {
     1.7 -                            if (raf == null) {
     1.8 +                            if (raf != null) {
     1.9                                  raf.close();
    1.10                              }
    1.11                          } catch (Throwable t) {

mercurial