lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index CompoundFileReader.java
Date Mon, 12 Jul 2004 14:36:04 GMT
otis        2004/07/12 07:36:04

  Modified:    src/java/org/apache/lucene/index CompoundFileReader.java
  Log:
  - Fix for NPE: http://issues.apache.org/bugzilla/show_bug.cgi?id=30049
  
  Revision  Changes    Path
  1.7       +2 -2      jakarta-lucene/src/java/org/apache/lucene/index/CompoundFileReader.java
  
  Index: CompoundFileReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/CompoundFileReader.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CompoundFileReader.java	10 Jul 2004 06:19:01 -0000	1.6
  +++ CompoundFileReader.java	12 Jul 2004 14:36:04 -0000	1.7
  @@ -87,7 +87,7 @@
               success = true;
   
           } finally {
  -            if (! success) {
  +            if (! success && (stream != null)) {
                   try {
                       stream.close();
                   } catch (IOException e) { }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message