-
Bug
-
Resolution: Fixed
-
Major
-
8.6.0, 9.0.0
-
None
-
Security Level: Jimmy
-
None
-
ZK 9.0.1 S1
Steps to Reproduce
Run fiddle
http://zkfiddle.org/sample/nqqioa/4-remove-From-Toolbar-js-Error
click button
Current Result
zul.wgt.Toolbar.removeChild cause NPE since popup is null (not rendered)
Expected Result
toolbar should check for popup existence before accessing, then do super() if no popup exits
Debug Info
Root Cause
no check for popup existence
https://github.com/zkoss/zk/blob/master/zul/src/archive/web/js/zul/wgt/Toolbar.js#L222-L226
Workaround
- relates to
-
ZK-3179 Toolbar can have an overflow button that contains those buttons weren't able to fit in the toolbar
- Closed