3 Replies Latest reply on Oct 4, 2008 10:17 AM by Ronald van Kuijk

    createTaskInstance() nullpointer exception

    Sascha Janz Master

      i try to dynamically create a taskinstance

      but calling
      TaskInstance ti = pi.getTaskMgmtInstance().createTaskInstance()

      gives the following null pointer exception

      java.lang.NullPointerException
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:113)
      at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:83)
      at com.workflow.manager.AddTaskCommand.execute(AddTaskCommand.java:55)