You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Pradeep Kumar K <pr...@robosoftin.com> on 2002/01/04 10:02:19 UTC

Error while creating term

Can anybody help me?


When I uses the following code I am getting some
error

TermQuery theStringToFindQuery = new TermQuery(new Term 
(null,stringToFind));


Error: 	java.lang.NullPointerException
**********
Stack trace: 	
File	Line#	Method	Package
------------------------------------------------------------------------
Term.java	38	<init>	com.lucene.index
Term.java	35	<init>	com.lucene.index

What is the reason behind that?

Here I have given the entity name as null.
Do we can't create a Term with entityName as null



--------------------------------------------------------------
Robosoft Technologies, Mangalore, India



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>