Browse Source

fix nullPointer from method replaceNullChars

pull/2253/head
YevhenBondarenko 7 years ago
parent
commit
fc95cabc7a
  1. 2
      dao/src/main/java/org/thingsboard/server/dao/sqlts/AbstractInsertRepository.java

2
dao/src/main/java/org/thingsboard/server/dao/sqlts/AbstractInsertRepository.java

@ -90,7 +90,7 @@ public abstract class AbstractInsertRepository {
}
protected String replaceNullChars(String strValue) {
if (removeNullChars) {
if (removeNullChars && strValue != null) {
return PATTERN_THREAD_LOCAL.get().matcher(strValue).replaceAll(EMPTY_STR);
}
return strValue;

Loading…
Cancel
Save