lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: OutOfMemoryError
Date Tue, 17 Aug 2004 22:41:38 GMT
On Wednesday 18 August 2004 00:30, Terence Lai wrote:

>             if (fsDir != null) {
>                 try {
>                     is.close();
>                 } catch (Exception ex) {
>                 }
>             }

You close is here again, not fsDir. Also, it's a good idea to never ignore 
exceptions, you should at least print them out, even if it's just a 
close() that fails.

Regards
 Daniel

-- 
http://www.danielnaber.de
Mime
View raw message