Index: link-template.php
===================================================================
--- link-template.php	(revision 37174)
+++ link-template.php	(working copy)
@@ -190,7 +190,9 @@
 			// having to assign it explicitly
 			if ( empty($category) ) {
 				$default_category = get_term( get_option( 'default_category' ), 'category' );
-				$category = is_wp_error( $default_category ) ? '' : $default_category->slug;
+				if ( is_wp_error( $default_category ) || is_null ( $default_category ))
+					$category = '';
+				else ( $category = $default_category->slug; )
 			}
 		}
 
