lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <petite_abei...@mac.com>
Subject Re: Weird NPE in RAMInputStream when merging indices
Date Wed, 22 Oct 2003 16:17:09 GMT
Hi Otis,

On Wednesday, Oct 22, 2003, at 18:06 Europe/Amsterdam, Otis Gospodnetic 
wrote:

> Since 'files' is a Hashtable, neither the key nor the value (file) can
> be null, even though the NPE in RAMInputStream constructor implies that
> file was null.

Yep... pretty weird... but looking at openFile(String name)... could it 
somehow be possible that the name is invalid for some reasons and 
therefore doesn't exists in the Hashtable? So files.get(name) would 
return null and new RAMInputStream(file) would then raise a NPE?

This would not explain why the name is invalid in the first place... 
but that could be a start for an investigation... what do you think?

Cheers,

PA.


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


Mime
View raw message