We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Somewhere in TourPage.php, you're doing something like this:
DataObject::get("Something")->toDropDownMap();
Unless you're 100% sure that "Something" will not return a null set, you shouldn't run a method on that output. A better practice is this:
$stuff = DataObject::get("Something");
$map = $stuff? $stuff->toDropdownMap() : array();
return new DropdownField('Name','Title', $map);
great ! thanks :)