|
@@ -1,6 +1,7 @@
|
|
|
package com.lantone.qc.trans.comsis;
|
|
|
|
|
|
import com.google.common.collect.Maps;
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.LinkedHashMap;
|
|
@@ -101,7 +102,9 @@ public class Preproc {
|
|
|
|
|
|
Map<String, String> sectionsNew = Maps.newHashMap();
|
|
|
sections.keySet().forEach(key -> {
|
|
|
- sectionsNew.put(key.replaceAll("[\\s\\p{Zs}]", ""), sections.get(key));
|
|
|
+ if (StringUtil.isNotBlank(key)) {
|
|
|
+ sectionsNew.put(key.replaceAll("[\\s\\p{Zs}]", ""), sections.get(key));
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
return sectionsNew;
|