From 5846c06afa6cffcd39ca72826e7a0b59631ace8f Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期二, 24 十二月 2024 14:37:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/common/utils/DllUtils.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/common/utils/DllUtils.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/common/utils/DllUtils.java
index 947da19..ae18b35 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/common/utils/DllUtils.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/common/utils/DllUtils.java
@@ -217,6 +217,9 @@
             throw new RuntimeException("模型文件不能为空!");
         } else {
             URLClassLoader classLoader = DllUtils.getClassLoader(projectId);
+            if (null == classLoader) {
+                throw new RuntimeException("dll未发布,classLoader为null");
+            }
             Class<?> clazz = classLoader.loadClass(model.getClassName());
             Method method = clazz.getMethod(model.getMethodName(), model.getParamsArray());
             return (HashMap)method.invoke(clazz.newInstance(), paramsValueArray);

--
Gitblit v1.9.3