Nitin Gupta created OAK-10095:
---------------------------------

             Summary: NullPointerException in FieldFactory.dateToLong
                 Key: OAK-10095
                 URL: https://issues.apache.org/jira/browse/OAK-10095
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Nitin Gupta


We have the following warning in the log file, with a NullPointerException. The 
NPE should not occur in this case. It doesn't seem to cause very big issue, but 
it seems to confuse people and then we have to investigate into the issue maybe 
because of that.
{noformat}
jcr:content/metadata/... of type LONG to type DATE for path /content/...
java.lang.NullPointerException: null
        at 
org.apache.jackrabbit.oak.plugins.index.lucene.FieldFactory.dateToLong(FieldFactory.java:189)
        at 
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneDocumentMaker.indexTypeOrderedFields(LuceneDocumentMaker.java:282)
        at 
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneDocumentMaker.indexTypeOrderedFields(LuceneDocumentMaker.java:55)
        at 
org.apache.jackrabbit.oak.plugins.index.search.spi.editor.FulltextDocumentMaker.addTypedOrderedFields(FulltextDocumentMaker.java:384)
        at 
org.apache.jackrabbit.oak.plugins.index.search.spi.editor.FulltextDocumentMaker.access$100(FulltextDocumentMaker.java:58)

{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to