Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-5763

IncidentInstanceHandler is not null safe

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5.0, 7.5.0-alpha4
    • Component/s: engine
    • Labels:

      Description

      Steps to reproduce:
      1) deploy the attached process twice (so that there are two version of it)
      2) start an instance of the first instance (the process instance should fail to execute the second service task, an incident should be created)
      3) try to migrate this process instance to the second version of the process

      Problem:
      The following NullPointerException is thrown:

      Apr 12, 2016 11:04:59 AM org.camunda.bpm.engine.rest.exception.ExceptionHandler toResponse
      WARNING: java.lang.NullPointerException
              at org.camunda.bpm.engine.impl.migration.instance.parser.IncidentInstanceHandler.handle(IncidentInstanceHandler.java:31)
              at org.camunda.bpm.engine.impl.migration.instance.parser.IncidentInstanceHandler.handle(IncidentInstanceHandler.java:24)
              at org.camunda.bpm.engine.impl.migration.instance.parser.MigratingInstanceParser.parse(MigratingInstanceParser.java:111)
              at org.camunda.bpm.engine.impl.migration.MigrateProcessInstanceCmd.migrateProcessInstance(MigrateProcessInstanceCmd.java:104)
              at org.camunda.bpm.engine.impl.migration.MigrateProcessInstanceCmd.execute(MigrateProcessInstanceCmd.java:86)
              at org.camunda.bpm.engine.impl.migration.MigrateProcessInstanceCmd.execute(MigrateProcessInstanceCmd.java:64)
              at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
              at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:95)
              at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:66)
              at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
              at org.camunda.bpm.engine.impl.migration.MigrationPlanExecutionBuilderImpl.execute(MigrationPlanExecutionBuilderImpl.java:49)
              at org.camunda.bpm.engine.rest.impl.MigrationRestServiceImpl.executeMigrationPlan(MigrationRestServiceImpl.java:62)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
      ...
      

        Attachments

          Activity

            People

            Assignee:
            roman.smirnov Roman Smirnov
            Reporter:
            roman.smirnov Roman Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: