db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DERBY-6596) LUCENESUPPORT routines should check for NULL arguments
Date Tue, 03 Jun 2014 14:49:02 GMT
Knut Anders Hatlen created DERBY-6596:

             Summary: LUCENESUPPORT routines should check for NULL arguments
                 Key: DERBY-6596
                 URL: https://issues.apache.org/jira/browse/DERBY-6596
             Project: Derby
          Issue Type: Improvement
          Components: Tools
    Affects Versions:
            Reporter: Knut Anders Hatlen
            Priority: Minor

When the LUCENESUPPORT routines are called with argument value NULL where a NULL is not allowed,
they fail with NullPointerExceptions. Example:

ij> call lucenesupport.createindex('app', 't', null, null);
ERROR 38000: The exception 'java.lang.NullPointerException' was thrown while evaluating an
ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

Here, the third argument (the column name) cannot be NULL. It would be nicer if it raised
an error that said that the argument couldn't be NULL, since a NullPointerException looks
more like an internal error.

This message was sent by Atlassian JIRA

View raw message