From 973858ec5a5f795f6ec0c712733a5f5343eb0261 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 30 Dec 2009 04:33:36 +0000 Subject: Fail gracefully if module fails to load. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2318 a436a847-0d15-0410-975c-d299462d15a1 --- src/module/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/module') diff --git a/src/module/World.cpp b/src/module/World.cpp index c4b1a88e..d5e50a9e 100644 --- a/src/module/World.cpp +++ b/src/module/World.cpp @@ -90,7 +90,7 @@ World::load(const char* name) { SharedPtr lib = load_module(name); Ingen::Shared::Module* (*module_load)() = NULL; - if (lib->get_symbol("ingen_module_load", (void*&)module_load)) { + if (lib && lib->get_symbol("ingen_module_load", (void*&)module_load)) { Module* module = module_load(); module->library = lib; module->load(this); -- cgit v1.2.1