Index: includes/content.token.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/includes/Attic/content.token.inc,v
retrieving revision 1.5.2.11
diff -u -r1.5.2.11 content.token.inc
--- includes/content.token.inc	4 Dec 2010 17:08:00 -0000	1.5.2.11
+++ includes/content.token.inc	10 Dec 2010 20:15:36 -0000
@@ -25,7 +25,7 @@
   $tokens = array();
   if ($type == 'node') {
     // Prevent against invalid 'nodes' built by broken 3rd party code.
-    if (isset($object->type)) {
+    if (is_object($object->type) && isset($object->type)) {
       // Let PHP free the $node object when we are done. Working directly on the
       // incoming $object causes memory leak issues on long-running scripts such
       // as migrations. See http://drupal.org/node/736440.
