Browse Source

Merge pull request #2253 from YevhenBondarenko/feature/batch-telemetry

Feature/batch telemetry (fix nullPointer)
pull/3727/head
Andrew Shvayka 7 years ago
committed by GitHub
parent
commit
3dd8336f01
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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