summaryrefslogtreecommitdiffstats
path: root/tools/editor/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-07-11 00:17:54 +0200
committerGitHub <noreply@github.com>2016-07-11 00:17:54 +0200
commit9397458cc0a37f4899a0dba5352a6e045ed123d8 (patch)
treeee4b0b0588fdd7c8dbe3a0acabace07f4fe66491 /tools/editor/asset_library_editor_plugin.cpp
parentd37ef5990b229c0fb90c25e884ae6ef42dda5a6c (diff)
parent1a1b62748a01928401a344b8c538b59f75706ece (diff)
downloadredot-engine-9397458cc0a37f4899a0dba5352a6e045ed123d8.tar.gz
Merge pull request #5634 from vnen/assetlib-map-crash
Fix crash on asset lib install
Diffstat (limited to 'tools/editor/asset_library_editor_plugin.cpp')
-rw-r--r--tools/editor/asset_library_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/asset_library_editor_plugin.cpp b/tools/editor/asset_library_editor_plugin.cpp
index ee535310bc..f132e94690 100644
--- a/tools/editor/asset_library_editor_plugin.cpp
+++ b/tools/editor/asset_library_editor_plugin.cpp
@@ -600,7 +600,8 @@ void EditorAssetLibrary::_install_asset() {
EditorAssetLibraryItemDownload *d = downloads_hb->get_child(i)->cast_to<EditorAssetLibraryItemDownload>();
if (d && d->get_asset_id() == description->get_asset_id()) {
- EditorNode::get_singleton()->show_warning("Download for this asset is already in progress!");
+ if (EditorNode::get_singleton() != NULL)
+ EditorNode::get_singleton()->show_warning("Download for this asset is already in progress!");
return;
}
}