Unfortunately not much information, but in one case the overview of all tasks via the tasks macro failed with the error message:
Failed to execute the [velocity] macro. Cause: [Cannot invoke "com.xwiki.task.model.Task.getReference()" because "task" is null]. Click on this message for details.
Clicking on the message however does not show any details. There is nothing in the logs or in the HTML code of the page (as far as I could see.)
Maybe this is caused by the code here not checking for null:
|
if (!authorizationManager.hasAccess(Right.VIEW, task.getReference())) { |
while the DefaultTaskManager.getTask(int) might return null if the document does not contain a task (esp. if it does not exist)
|
if (taskObject == null) { |
This should not happen, as the query should not return any results, but I have no better explanation. Maybe some bullet proofing (or a different exception in the DefaultTaskManager) would help.
Unfortunately not much information, but in one case the overview of all tasks via the
tasksmacro failed with the error message:Clicking on the message however does not show any details. There is nothing in the logs or in the HTML code of the page (as far as I could see.)
Maybe this is caused by the code here not checking for null:
application-task/application-task-default/src/main/java/com/xwiki/task/internal/macro/TasksMacro.java
Line 115 in f5db0e6
while the
DefaultTaskManager.getTask(int)might returnnullif the document does not contain a task (esp. if it does not exist)application-task/application-task-default/src/main/java/com/xwiki/task/internal/DefaultTaskManager.java
Line 115 in f5db0e6
This should not happen, as the query should not return any results, but I have no better explanation. Maybe some bullet proofing (or a different exception in the DefaultTaskManager) would help.