[TYPO3-core] RFC #13118: Toggle empty tree produces JS error

Felix Oertel post at typo3felix.de
Tue Dec 29 17:40:26 CET 2009


Hi,

this is an SVN patch request.

Type: minor bugfix

Branches: 4.3, trunk

Bugtracker reference:
http://bugs.typo3.org/view.php?id=13118

Problem:
If you toggle an empty tree (by clicking on the -) the following 
JavaScript-error occurs:

Fehler: uncaught exception: [Exception... "Component returned failure 
code: 0x80004003 (NS_ERROR_INVALID_POINTER)" nsresult: "0x80004003 
(NS_ERROR_INVALID_POINTER)" location: "JS frame :: 
http://trunk.local/typo3/js/tree.js [^] :: anonymous :: line 53" data: no]

Solution:
If there are no children, "ul" is empty. Check if "ul" is set, before 
trying to remove it.

Regards,

Felix Oertel
typo3felix.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13118.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20091229/3423da53/attachment.txt>


More information about the TYPO3-team-core mailing list