From 1e4170e4e9896e0320773ad3413edd032bce5126 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Fri, 9 Apr 2021 03:18:47 +0800 Subject: [PATCH] =?UTF-8?q?js=20=E6=96=B9=E6=B3=95=E6=B7=BB=E5=8A=A0aes?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E8=A7=A3=E5=AF=86=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epublib/src/main/java/me/ag2s/epublib/util/StringUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epublib/src/main/java/me/ag2s/epublib/util/StringUtil.java b/epublib/src/main/java/me/ag2s/epublib/util/StringUtil.java index fa6757aaf..acb3093e9 100644 --- a/epublib/src/main/java/me/ag2s/epublib/util/StringUtil.java +++ b/epublib/src/main/java/me/ag2s/epublib/util/StringUtil.java @@ -282,6 +282,9 @@ public class StringUtil { if (m.find()) { s= m.group(1); } + if(s==null){ + return ""; + } //移除GBK中文全角空格 s = s.replace(" ", ""); return s;