lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Weird NPE in RAMInputStream when merging indices
Date Wed, 22 Oct 2003 16:45:18 GMT
That's why I emphasized that Hashtable doesn't allow nulls.
If this is happening often, then yes, that is the thing to be
suspicious about, and is easily to test by modifying your local copy of
RAMDirectory.

Otis

--- petite_abeille <petite_abeille@mac.com> wrote:
> 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
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
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