Index: src/wp-includes/link-template.php
===================================================================
--- src/wp-includes/link-template.php	(revision 32937)
+++ src/wp-includes/link-template.php	(working copy)
@@ -907,11 +907,16 @@
  */
 function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) {
 	$tax = get_taxonomy( $taxonomy );
-	if ( !current_user_can( $tax->cap->edit_terms ) )
+	if ( ! current_user_can( $tax->cap->edit_terms ) ) {
 		return;
+	}
 
 	$term = get_term( $term_id, $taxonomy );
 
+	if ( is_wp_error( $term ) || is_null( $term ) ) {
+		return;
+	}
+
 	$args = array(
 		'action' => 'edit',
 		'taxonomy' => $taxonomy,
