diff --git a/core/lib/Drupal/Core/Field/WidgetPluginManager.php b/core/lib/Drupal/Core/Field/WidgetPluginManager.php
index c251135..26ad53d 100644
--- a/core/lib/Drupal/Core/Field/WidgetPluginManager.php
+++ b/core/lib/Drupal/Core/Field/WidgetPluginManager.php
@@ -103,8 +103,9 @@ public function getInstance(array $options) {
     if (!isset($definition['class']) || !in_array($field_type, $definition['field_types']) || !$definition['class']::isApplicable($field_definition)) {
       // Grab the default widget for the field type.
       $field_type_definition = $this->fieldTypeManager->getDefinition($field_type);
-      if (empty($field_type_definition['default_widget'])) {
+      if (empty($field_type_definition['default_widget'])) {    
         return NULL;
+        throw new \RuntimeException(t('No valid widget could be found for field type @type.', array('@type' => $field_type)));
       }
       $plugin_id = $field_type_definition['default_widget'];
     }
