Bugfix #21914: SigSegV when loading file with missing proxy object
authorJoshua Leung <aligorith@gmail.com>
Mon, 5 Apr 2010 07:20:34 +0000 (07:20 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 5 Apr 2010 07:20:34 +0000 (07:20 +0000)
This 'should' fix it...

source/blender/blenloader/intern/readfile.c

index 856b4eaa8ba5f6aa5f59f742d44d5a906261b928..dcd7d9d0dab11d81d6c6516c26925e1ce01bb235 100644 (file)
@@ -3439,7 +3439,11 @@ static void lib_link_object(FileData *fd, Main *main)
                                if(ob->proxy->id.lib==NULL) {
                                        ob->proxy->proxy_from= NULL;
                                        ob->proxy= NULL;
-                                       printf("Proxy lost from  object %s lib %s\n", ob->id.name+2, ob->id.lib->name);
+                                       
+                                       if (ob->id.lib)
+                                               printf("Proxy lost from  object %s lib %s\n", ob->id.name+2, ob->id.lib->name);
+                                       else
+                                               printf("Proxy lost from  object %s lib <NONE>\n", ob->id.name+2);
                                }
                                else {
                                        /* this triggers object_update to always use a copy */