diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index ff17b14..2db6456 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -10597,38 +10597,23 @@ DEFPY (show_ip_ospf_gr_helper,
 		}
 
 		ospf = ospf_lookup_by_inst_name(inst, vrf_name);
-
-		if (ospf == NULL || !ospf->oi_running) {
-
-			if (uj)
-				vty_json(vty, json);
-			else
-				vty_out(vty,
-					"%% OSPF is not enabled in vrf %s\n",
-					vrf_name);
-
-			return CMD_SUCCESS;
-		}
-
 	} else {
 		/* Default Vrf */
 		ospf = ospf_lookup_by_vrf_id(VRF_DEFAULT);
+	}
 
-		if (ospf == NULL || !ospf->oi_running) {
-
-			if (uj)
-				vty_json(vty, json);
-			else
-				vty_out(vty,
-					"%% OSPF is not enabled in vrf default\n");
+	if (ospf == NULL || !ospf->oi_running) {
 
-			return CMD_SUCCESS;
-		}
+		if (uj)
+			vty_json(vty, json);
+		else
+			vty_out(vty,
+				"%% OSPF is not enabled in vrf %s\n", vrf_name ? vrf_name : "default");
 
-		ospf_show_gr_helper_details(vty, ospf, use_vrf, json, uj,
-					    detail);
+		return CMD_SUCCESS;
 	}
 
+	ospf_show_gr_helper_details(vty, ospf, use_vrf, json, uj, detail);
 	if (uj)
 		vty_json(vty, json);
 
