Index: wp-includes/admin-bar.php
===================================================================
--- wp-includes/admin-bar.php	(revision 22265)
+++ wp-includes/admin-bar.php	(working copy)
@@ -454,7 +454,7 @@
 		if ( empty( $current_object ) )
 			return;
 
-		if ( ! empty( $current_object->post_type )
+		if ( ! empty( $current_object->post_type ) && $current_object->ID
 			&& ( $post_type_object = get_post_type_object( $current_object->post_type ) )
 			&& current_user_can( $post_type_object->cap->edit_post, $current_object->ID )
 			&& $post_type_object->show_ui && $post_type_object->show_in_admin_bar )
