SOLVED Problem with TreeViewFunctions.HeaderClick in c4d r20, 21 22

Hi everyone,
The TreeViewFunctions.HeaderClick method works very well with r19, but since r20 not at all. I get an error message "SystemError: NULL object passed to Py_BuildValue".
I tested with Niklas's code (thanks to him ! ) :
https://gist.github.com/NiklasRosenstein/632e39a9b4dda391fe54

(Tested with r19-> ok, r20, r21, s22-> not ok )

Hi @oli_d , thankk for reaching out us

We have been able to reproduce the issue and we'll look into it to get it fixed in the future.

Cheers, R

hi,

Since R20, arguments have been added, and the problem is coming from the last one :)

  def HeaderClick(self, root, userdata, lColID, lChannel, bDblClk, mouseX, mouseY, ua):

I've opened a bug report

Cheers,
Manuel