When called on the empty desktop, the nautilus_view_get_selection (view) function results in a NULL result. At that point, there is no further need to continue the function execution and it is safe to exit as no resources need to be released.
This patch checks for selection being NULL and returns preventing nautilus from crashing.
Please comment on this and if appropriate merge the patch in the nautilus package.
When called on the empty desktop, the nautilus_ view_get_ selection (view) function results in a NULL result. At that point, there is no further need to continue the function execution and it is safe to exit as no resources need to be released.
This patch checks for selection being NULL and returns preventing nautilus from crashing.
Please comment on this and if appropriate merge the patch in the nautilus package.