ServiceRegistryJpaImpl.updateInternal can NPE with a null job

Steps to reproduce

There is no check that job is not null before it is accessed

protected Job updateInternal(EntityManager em, Job job) throws PersistenceException {
EntityTransaction tx = em.getTransaction();
try {
tx.begin();
JobJpaImpl fromDb;
fromDb = em.find(JobJpaImpl.class, job.getId());

Status

Assignee

Lukas Rohner

Reporter

Christopher Brooks

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

Components

Affects versions

Priority

Major
Configure