Nullpointer exception when sequence flow has invalid destination

Description

Hi Guys.

If a process is not valid because a target node of a sequence flow is missing this is added to an error list but afterwards it is still tried to connect the sequence flow, which results in a NPE. Would be nice to fix that, than you even see the error you want to see

02.11.2010 19:09:41 org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
02.11.2010 19:09:41 org.activiti.engine.impl.jobexecutor.JobAcquisitionThread run
INFO: JobAcquisitionThread starting to acquire jobs
02.11.2010 19:09:41 org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource activiti-maven-template.bpmn20.xml
02.11.2010 19:09:42 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
02.11.2010 19:09:42 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as typeLanguage
java.lang.NullPointerException
at org.activiti.engine.impl.pvm.process.TransitionImpl.setDestination(TransitionImpl.java:47)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseSequenceFlow(BpmnParse.java:1350)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseScope(BpmnParse.java:421)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseProcess(BpmnParse.java:395)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseProcessDefinitions(BpmnParse.java:359)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:194)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:63)
at org.activiti.engine.impl.db.DbRepositorySession.deployNew(DbRepositorySession.java:62)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:52)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:36)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:101)
at org.activiti.engine.impl.test.TestHelper.annotationDeploymentSetUp(TestHelper.java:93)
at org.activiti.engine.test.ActivitiTestCase.setUp(ActivitiTestCase.java:88)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Environment

None

Assignee

Joram Barrez

Reporter

Tom Baeyens

Labels

None

Components

Fix versions

Priority

Minor
Configure