#013773: [MvcTools] Fail as soon as possible

Description:

When my controller does not return the right object, then the following exception is thrown:

Catchable fatal error: Argument 3 passed to ymcGitWikiDispatcherConfiguration::runResultFilters() must be an instance of ezcMvcResult, null given, called in /var/checkouts/ezcomponents/trunk/MvcTools/src/dispatchers/configurable.php on line 117 and defined in /var/checkouts/ymcgitwiki/src/lib/dispatcher_config.php on line 53

But it would be better to check the return value imediately, maybe already in the createResult method of the controller. Since there are so many different kind of objects, interfaces and so on, it helps much to know the exact place where I did not return the right thing.


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. 9133 -- we need to check it in the dispatcher though, as it's very likely that people write their own controller classes.

#258631 by Derick Rethans on October 17th, 2008 [Permanent Link]

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