HistoricVariableUpdate#getValue() throws NPE for JPA entities

Description

Trying to load the value of a JPA entity historic variable fails with a NPE. Stacktrace from attached test:

java.lang.NullPointerException
at org.activiti.engine.impl.variable.JPAEntityMappings.findEntity(JPAEntityMappings.java:125)
at org.activiti.engine.impl.variable.JPAEntityMappings.getJPAEntity(JPAEntityMappings.java:119)
at org.activiti.engine.impl.variable.JPAEntityVariableType.getValue(JPAEntityVariableType.java:77)
at org.activiti.engine.impl.persistence.entity.HistoricVariableUpdateEntity.getValue(HistoricVariableUpdateEntity.java:76)
at org.activiti.standalone.jpa.JPAVariableTest.testReadJpaVariableValueFromHistoricVariableUpdate(JPAVariableTest.java:498)

Environment

None

Assignee

Frederik Heremans

Reporter

Stefan R_ck

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure