From 50d849f8e84e8111cbfa45701394a16d641ff32b Mon Sep 17 00:00:00 2001
From: Tim Plunkett <git@plnktt.com>
Date: Sun, 12 Aug 2012 11:20:01 -0400
Subject: [PATCH] Jump menu fail.

---
 lib/Drupal/views/Tests/WizardJumpMenuTest.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/Drupal/views/Tests/WizardJumpMenuTest.php b/lib/Drupal/views/Tests/WizardJumpMenuTest.php
index 897cc7ea5fad..d1d6a30fe59c 100644
--- a/lib/Drupal/views/Tests/WizardJumpMenuTest.php
+++ b/lib/Drupal/views/Tests/WizardJumpMenuTest.php
@@ -70,6 +70,10 @@ function testJumpMenus() {
       // The urls are built with :: to be able to have a unique path all the time,
       // so try to find out the real path of $edit.
       $view_object = views_get_view($view['name']);
+      if (!$view_object) {
+        $this->fail('The view could not be loaded.');
+        return;
+      }
       $view_object->preview('page');
       $form = $view_object->style_plugin->render();
       $jump_options = $form['jump']['#options'];
@@ -169,4 +173,3 @@ function createNodeRevisionAndGetPath() {
     return 'node/' . $node->nid . '/revisions/' . $node->vid . '/view';
   }
 }
-
-- 
GitLab