lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Bug: RAMDirectory: line 158 - NPE
Date Tue, 27 Nov 2001 06:33:01 GMT
Hello,

I'm getting the following exception when using RAMDirectory:

Exception in thread "main" java.lang.NullPointerException
	at
org.apache.lucene.store.RAMInputStream.<init>(RAMDirectory.java:158)
	at
org.apache.lucene.store.RAMDirectory.openFile(RAMDirectory.java:123)
	at 
...
...

I'm using the stuff from CVS.
Attached is a standalone example that causes this Exception to be
thrown.

The file on line 153 on which '.length' is being called at line 123 is
null for some reason...

Am I doing something wrong?

Thanks,
Otis


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
Mime
View raw message