fix NPE
This commit is contained in:
parent
31b06fefdd
commit
67fa64d448
@ -31,7 +31,7 @@ public abstract class AbstractRelationInsertRepository implements RelationInsert
|
||||
|
||||
protected Query getQuery(RelationEntity entity, String query) {
|
||||
Query nativeQuery = entityManager.createNativeQuery(query, RelationEntity.class);
|
||||
if (entity.getAdditionalInfo().isNull()) {
|
||||
if (entity.getAdditionalInfo() == null) {
|
||||
nativeQuery.setParameter("additionalInfo", null);
|
||||
} else {
|
||||
nativeQuery.setParameter("additionalInfo", entity.getAdditionalInfo().asText());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user