diff options
-rw-r--r-- | src/module/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Glib::Module> 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); |