AnsweredAssumed Answered

DefaultProcessDiagramGenerator nullpointer

Question asked by deg on Sep 9, 2014
Latest reply on Sep 30, 2014 by deg
In Activiti 5.16.1 i get the following ugly "warning" exception when deploying my activie proces, usin spring.


java.lang.NullPointerException: null
   at org.activiti.image.impl.DefaultProcessDiagramGenerator.connectionPerfectionizer(DefaultProcessDiagramGenerator.java:593) ~[activiti-image-generator-5.16.1.jar:5.16.1]
   at org.activiti.image.impl.DefaultProcessDiagramGenerator$22.draw(DefaultProcessDiagramGenerator.java:358) ~[activiti-image-generator-5.16.1.jar:5.16.1]
   at org.activiti.image.impl.DefaultProcessDiagramGenerator.drawArtifact(DefaultProcessDiagramGenerator.java:680) ~[activiti-image-generator-5.16.1.jar:5.16.1]

Diving into the code it was easy to see that i just needed to set the "createDiagramOnDeploy" property to false on my ProcessEngineConfiguration. This is set default to true, but then this also gives an exception by default.

Just thought this was a bit ugly.
Default behaviour printing stacktraces like that.

Regards

Outcomes