Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r--source/blender/editors/space_file/file_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 65a46d6514d..a217dbe9f57 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -933,7 +933,7 @@ int file_delete_poll(bContext *C)
SpaceFile *sfile= CTX_wm_space_file(C);
struct direntry* file;
- if (sfile->params) {
+ if (sfile && sfile->params) {
if (sfile->params->active_file < 0) {
poll= 0;
} else {