toolbar.validate() = NullPointerException

Hello
Exercising arround with ToolBar I get NullPointerException at the code-line oTb.validate().
But only in webclient (Version: 5.2.2 - build 1002)

function onSolutionOpen() {
var oTb = plugins.window.addToolBar("toolbar1")
var oTb = plugins.window.getToolBar("toolbar1")
oTb.addButton("Hello", func1)
oTb.validate();                                   // the NullPointerException  !!
}

Thank you for any ideas what’s wrong.

The reason is simple: toolbars are not web compatible!

Oh my god … thank you.