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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to