jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
561 stars 121 forks source link

NPE when open a process in BPM modeler #3417

Closed SergeiAksenov2 closed 3 months ago

SergeiAksenov2 commented 3 months ago

Environment

Jmix version: 2.3.0 Jmix Studio plugin version: 2.3.NIGHTLY1361-241 IntelliJ version: IntelliJ IDEA 2024.1.4 (Community Edition)

Bug Description

Open a process in BPM madeler cause the exception

Steps To Reproduce

  1. Add BPM addon
  2. Run project
  3. Go to BPM Modeler
  4. Create process
  5. Deploy process
  6. Go to "Process definitions", select the process
  7. Click the button "Open in modeler"

Current Behavior

There is a NPE: Cannot invoke 'io.jmix.bpmflowui.uicomponent.bpmnmodeler.BpmnModeler.setBpmnXml(String)' because 'this.bpmnModeler' is null image

image

Expected Behavior

Modeler view is opend.

gorbunkov commented 3 months ago

Caused by #3419

SergeiAksenov2 commented 3 months ago

Tested on: 1) Jmix version: 2.3.999-SNAPSHOT Jmix Studio plugin version: 2.3.SNAPSHOT6519-233 IntelliJ version: IntelliJ IDEA 2023.3.7 (Community Edition) 2) Jmix version: 2.3.999-SNAPSHOT Jmix Studio plugin version: 2.3.NIGHTLY1361-241 IntelliJ version: IntelliJ IDEA 2024.1.4 (Community Edition)

A process can be opened in Modeler through 'Process definitions' menu 'Open in modeler' - Ok.