On Mon, 6 Mar 2006, Matthew O'Connor wrote:

Matthew O'Connor [EMAIL PROTECTED] said:

This error happens in p2j() in PyLucene.i.  We have the
following code:

    char *ps = PyString_AsString(object);
    jstring js = JvNewStringUTF(ps);

But PyString_AsString() returns NULL for non-string objects.
I guess the right thing is to either call __str__ on the
object or just raise an exception.

Indeed.
I'm integrating your fixes now.

Thanks !

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to