From 19ea9ae1e5ad51e22c32d4f6593e93c7ef58f491 Mon Sep 17 00:00:00 2001 From: Hubert Jarosz Date: Sun, 28 Feb 2016 20:37:43 +0100 Subject: fix possible crash in tools/editor/editor_import_export.cpp da could be NULL, and dereferencing NULL could lead to crash --- tools/editor/editor_import_export.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/editor') diff --git a/tools/editor/editor_import_export.cpp b/tools/editor/editor_import_export.cpp index a1fe875287..e02ffd337b 100644 --- a/tools/editor/editor_import_export.cpp +++ b/tools/editor/editor_import_export.cpp @@ -281,6 +281,7 @@ static void _edit_filter_list(Set& r_list,const String& p_filter,boo } DirAccess *da = DirAccess::open("res://"); + ERR_FAIL_NULL(da); _edit_files_with_filter(da,filters,r_list,exclude); memdelete(da); } @@ -2217,5 +2218,3 @@ EditorImportExport::~EditorImportExport() { } - - -- cgit v1.2.3