Commit 67fa64d448262188cbea6f7b75e04477a00734cf

Authored by Dmytro Shvaika
Committed by Andrew Shvayka
1 parent 31b06fef

fix NPE

... ... @@ -31,7 +31,7 @@ public abstract class AbstractRelationInsertRepository implements RelationInsert
31 31
32 32 protected Query getQuery(RelationEntity entity, String query) {
33 33 Query nativeQuery = entityManager.createNativeQuery(query, RelationEntity.class);
34   - if (entity.getAdditionalInfo().isNull()) {
  34 + if (entity.getAdditionalInfo() == null) {
35 35 nativeQuery.setParameter("additionalInfo", null);
36 36 } else {
37 37 nativeQuery.setParameter("additionalInfo", entity.getAdditionalInfo().asText());
... ...