diff --git xmlsitemap_taxonomy/xmlsitemap_taxonomy.module xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
index 458ec16..abc5a0f 100644
--- xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
+++ xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
@@ -16,8 +16,10 @@ function xmlsitemap_taxonomy_entity_info_alter(&$entity_info) {
 function xmlsitemap_taxonomy_xmlsitemap_link_info_alter(&$link_info) {
   foreach (taxonomy_vocabulary_get_names() as $machine_name => $vocabulary) {
     // Adjust the edit path to the *real* edit path.
-    $link_info['taxonomy_term']['bundles'][$machine_name]['admin']['path'] .= '/edit';
-    $link_info['taxonomy_term']['bundles'][$machine_name]['admin']['real path'] .= '/edit';
+    if (!empty($link_info['taxonomy_term']['bundles'][$machine_name])) {
+      $link_info['taxonomy_term']['bundles'][$machine_name]['admin']['path'] .= '/edit';
+      $link_info['taxonomy_term']['bundles'][$machine_name]['admin']['real path'] .= '/edit';
+    }
   }
 }
 
