From 98b4771ed67eddc54920804a5ff9776e7e3b5792 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 27 Aug 2024 17:18:01 -0400 Subject: [PATCH] sanity check --- examples/COUPLE/plugin/liblammpsplugin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/COUPLE/plugin/liblammpsplugin.c b/examples/COUPLE/plugin/liblammpsplugin.c index 0549f3ab8c..50ad2f5192 100644 --- a/examples/COUPLE/plugin/liblammpsplugin.c +++ b/examples/COUPLE/plugin/liblammpsplugin.c @@ -190,6 +190,9 @@ liblammpsplugin_t *liblammpsplugin_load(const char *lib) ADDSYM(is_running); ADDSYM(force_timeout); + // symbol not present + if (!lmp->config_has_exceptions) return NULL; + lmp->has_exceptions = lmp->config_has_exceptions(); if (lmp->has_exceptions) { ADDSYM(has_error);