This issue has been created
 
 
Admin Tools Application / cid:jira-generated-image-avatar-bfc1ed97-a82f-4816-a3b1-824acc73a985 ADMINTOOL-97 Open

Wiki Diff failed with error: Cannot invoke method getDifferencesAsHTML() on null object

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7498d30d-b38d-4cfb-830e-21c8b9672f8f Antoine Mottier created this issue on 30/Sep/24 18:00
 
Summary: Wiki Diff failed with error: Cannot invoke method getDifferencesAsHTML() on null object
Issue Type: cid:jira-generated-image-avatar-bfc1ed97-a82f-4816-a3b1-824acc73a985 Bug
Affects Versions: 4.5.4
Assignee: Unassigned
Created: 30/Sep/24 18:00
Environment: Linux Debian
xwiki-xjetty-mariadb package
Priority: cid:jira-generated-image-static-major-1ee5fced-45e8-48ae-95a7-eba91dfad5d6 Major
Reporter: Antoine Mottier
Description:

Wiki Diff failed with error: Cannot invoke method getDifferencesAsHTML() on null object.

This has been done in the following environment:

The actual code failing is located in WikiDiffGroovy page.

The root cause of the issue seems to be the missing diff plugin.

Performing a research in javadoc let me believe that the plugin was removed starting with XWiki version 8.0:

A fix would probably be to use the Diff module but this doesn't seems trivial (at least to me with my current understanding of the legacy code and the features of the new module).