silverstripe/sapphire — pull request #1055 by stojg (2012-12-19 03:48:05+00:00)
Title: BUG Calling DataObject::relField() on a object with an empty relation list

This causes a 'Fatal error: Call to a member function hasMethod() on a non-object'.

This can happen when displaying a field in a gridfield on a belongs_to relationship.