Skip to content

Fix crash when copying an invalid file

#2376 (closed) null pointer error in get_basename() which leads to crash when paste a zip format file in ubuntu 22.04

nautilus-file-operations: A call to glib function g_file_get_basename() returns NULL when the file name can't be parsed.

I have made a fix which checks if the function g_file_get_basename() returns NULL and handle it accordingly.

For the provided Python test application we are now showing the following dialog:

image

Fixes #2376 (closed)

Merge request reports