Details
-
Bug
-
Resolution: Invalid
-
Major
-
None
-
14.4.6
-
Unknown
-
N/A
-
N/A
-
Description
We're getting few NPE with the link indexer, I performed minor changes to get full stack trace, here's what I obtain:
2022-10-24 10:14:37,003 [task-manager-consumer] WARN o.x.i.i.DefaultTasksManager - Error during the execution of task [org.xwiki.index.internal.TaskData@2646f930[timestamp=1664882653344,docId=-2322262540209076988,type=links,attempts=1,stop=false,wikiId=dev,version=]]. Cause: [NullPointerException: ]. 2022-10-24 10:14:37,017 [task-manager-consumer] DEBUG o.x.i.i.DefaultTasksManager - Stack trace for previous error: java.lang.NullPointerException: null at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.trySpaceSiblingFallback(AbstractResourceReferenceEntityReferenceResolver.java:231) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:186) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:167) at org.xwiki.rendering.internal.resolver.DocumentResourceReferenceEntityReferenceResolver.resolveUntyped(DocumentResourceReferenceEntityReferenceResolver.java:86) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:103) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:46) at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:77) at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:44) at org.xwiki.rendering.internal.parser.LinkParser.addReference(LinkParser.java:170) at org.xwiki.rendering.internal.parser.LinkParser.getUniqueLinkedEntityReferences(LinkParser.java:144) at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntityReferences(XWikiDocument.java:5735) at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntityReferences(XWikiDocument.java:5684) at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntities(XWikiDocument.java:5823) at com.xpn.xwiki.store.XWikiHibernateStore.extractLinks(XWikiHibernateStore.java:2217) at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:2263) at org.xwiki.index.internal.DefaultLinksTaskConsumer.consume(DefaultLinksTaskConsumer.java:75) at org.xwiki.index.internal.TaskExecutor.internalExecute(TaskExecutor.java:103) at org.xwiki.index.internal.TaskExecutor.execute(TaskExecutor.java:83) at org.xwiki.index.internal.DefaultTasksManager.consume(DefaultTasksManager.java:225) at org.xwiki.index.internal.DefaultTasksManager.run(DefaultTasksManager.java:208) at java.base/java.lang.Thread.run(Thread.java:829)