Commit 67fa64d448262188cbea6f7b75e04477a00734cf
Committed by
Andrew Shvayka
1 parent
31b06fef
fix NPE
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -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()); | ... | ... |