**System Information**
Operating system: Windows 10
**Blender Version**
Broken: 2.81 stable
**Short description of error**
When you have a PointerProperty shown in a panel, if you try to copy to selected, Blender will crash.
**Exact steps for others to reproduce the error**
1. Start up a fresh Blender
2. Run the following code to add a pointer property.
```
import bpy
class Test(bpy.types.PropertyGroup):
foo: bpy.props.PointerProperty(name='Foo', type=bpy.types.Object)
class FOO_PT_object(bpy.types.Panel):
bl_label = 'Foo Bar'
bl_idname = 'BIM_PT_object'
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = 'object'
@classmethod
def poll(cls, context):
return context.active_object is not None and hasattr(context.active_object, 'Test')
def draw(self, context):
row = self.layout.row()
row.prop(context.active_object.Test, 'foo')
bpy.utils.register_class(Test)
bpy.utils.register_class(FOO_PT_object)
bpy.types.Object.Test = bpy.props.PointerProperty(type=Test)
```
3. Duplicate the default cube a few times and set the `Foo` property on one of the cubes.
4. Select another few cubes, then right click on the `Foo` property and try `Copy to Selected`
5. Blender crashes.