getSelectedItemId return value

What return value can I expect from getSelectedItemId, if no item is selected? I was expecting null, as is the case with getSelectedRowId, but that’s not the case.



Thanks.



Phil

The functionality of tree was created to mimic API of its applet ancestor, so its returns just an empty value in such case
For both methods logical value of response is false, so you can use
if (!id) return “nothing”