#014124: better error handling for $tree->accept, if no root node is defined

Description:

If I call accept on a tree, which doesn't have a root node, I get:

Fatal error: Call to a member function accept() on a non-object in /var/checkouts/ezcomponents/trunk/Tree/src/tree.php on line 236

This should maybe handled with a more explanatory exception.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. 9588.

#259460 by Derick Rethans on December 12th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Tree
Affects Unknown
Fix Version 2008.2RC1 - eZ components 2008.2RC1
Reporter Thomas Koch
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created December 12th, 2008
Updated December 12th, 2008
Resolved December 12th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels