Browse Source

防止出现null

master
vito 9 years ago
parent
commit
33b0cb6496
  1. 5
      designer_base/src/com/fr/design/extra/PluginTask.java

5
designer_base/src/com/fr/design/extra/PluginTask.java

@ -71,6 +71,9 @@ public class PluginTask<T> extends Task<T> {
* @return 处理之后的字符串
*/
private String changText(String old) {
return old.replaceAll("\"", "\\\\\"").replaceAll("\n", "");
if(StringUtils.isNotBlank(old)){
return old.replaceAll("\"", "\\\\\"").replaceAll("\n", "");
}
return StringUtils.EMPTY;
}
}

Loading…
Cancel
Save