diff --git a/code/SubsitesVirtualPage.php b/code/SubsitesVirtualPage.php
index <HASH>..<HASH> 100644
--- a/code/SubsitesVirtualPage.php
+++ b/code/SubsitesVirtualPage.php
@@ -11,6 +11,7 @@ class SubsitesVirtualPage extends VirtualPage {
 		$fields = parent::getCMSFields();
 		
 		$subsites = DataObject::get('Subsite');
+		if(!$subsites) $subsites = new DataObjectSet();
 		$subsites->push(new ArrayData(array('Title' => 'Main site', 'ID' => 0)));
 
 		$subsiteSelectionField = new DropdownField(
MINOR: Don't throw an error if no subsites are defined. (from r<I>)