[jboss-jira] [JBoss JIRA] (DROOLS-2343) [DMN Designer] Closing Context editor causes error

Michael Anstis (JIRA) issues at jboss.org
Fri Feb 23 05:51:00 EST 2018


    [ https://issues.jboss.org/browse/DROOLS-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13537431#comment-13537431 ] 

Michael Anstis commented on DROOLS-2343:
----------------------------------------

*Navigating to DMN "level 2" editor*
(Disables Stunner session as it provides its own keyboard etc handler)

{{AbstractClientSession.pause()}}
- calls {{CanvasControlRegistrationHandler.disable()}}
- calls {{CanvasControl.disable()}}
- calls {{AbstractCanvasHandlerControl.disable()}}
- calls {{AbstractCanvasHandlerControl.doDisable()}}
- calls {{LocationControlImpl.doDisable()}}
- {{AbstractCanvasHandlerControl}} then sets {{canvasHandler}} to {{null}}


*Closing editor*
{{SessionDiagramEditorScreen.destroySession()}}
- calls {{AbstractSessionPresenter.destroy()}}
- calls {{AbstractClientSessionManager.destroy()}}
- calls {{AbstractClientSession.doDestroy()}}

Then follows the same as above for when pausing a session

- calls {{CanvasControlRegistrationHandler.disable()}}
- calls {{CanvasControl.disable()}}
- calls {{AbstractCanvasHandlerControl.disable()}}
- calls {{AbstractCanvasHandlerControl.doDisable()}}
- calls {{LocationControlImpl.doDisable()}}
- {{LocationControlImpl}} attempts to access {{canvasHandler}} properties however it is {{null}} 

So, basically, when a Control is disabled and a subsequent attempt follows to disable it then don't! 

> [DMN Designer] Closing Context editor causes error
> --------------------------------------------------
>
>                 Key: DROOLS-2343
>                 URL: https://issues.jboss.org/browse/DROOLS-2343
>             Project: Drools
>          Issue Type: Bug
>          Components: DMN Editor
>    Affects Versions: 7.7.0.Final
>            Reporter: Jozef Marko
>            Assignee: Michael Anstis
>            Priority: Critical
>         Attachments: Screenshot from 2018-02-21 14-02-18.png
>
>
> If the context editor is closed the attached error appears.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list