Эх сурвалжийг харах

保存电签证书空指针

cr 1 долоо хоног өмнө
parent
commit
232f734e55

+ 4 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/SignPfxFilePreServiceImpl.java

@@ -128,7 +128,10 @@ public class SignPfxFilePreServiceImpl implements ISignPfxFilePreService {
             String htmlString = IoUtil.readToString(inputStreamByUrl);
             Document doc = Jsoup.parse(htmlString);
             Element table = doc.select("table").first();
-            Elements dqids = table.getElementsByAttribute("dqid");
+            Elements dqids = null;
+            if (table != null) {
+                dqids = table.getElementsByAttribute("dqid");
+            }
             for (Element element : dqids) {
                 String dqid = element.attr("dqid");
                 Elements x11 = element.getElementsByAttribute("x1");