--- private_upload.module	2008-02-02 12:44:17.000000000 -0500
+++ private_upload.module	2008-02-02 13:02:39.000000000 -0500
@@ -283,7 +283,7 @@ function private_upload_nodeapi(&$node, 
       // Warning: this just hides the link, it does not protect the file.
       if(module_exists('og') && og_is_group_type($node->type)) {
         global $user;
-        if( !array_key_exists($node->nid, $user->og_groups) ) { 
+        if(!array_key_exists($node->nid, $user->og_groups) && isset($node->files)) { 
           foreach ($node->files as $fid => $file) {    
             if( _private_upload_is_file_private($file->filepath) ) {
               $file->list = false;
