summaryrefslogtreecommitdiffstats
path: root/tools/editor/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
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;
}
}