{"action":"closed","issue":{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/19","repository_url":"https://api.github.com/repos/workcraft-lp/workcraft-test","labels_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/19/comments","events_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/19/events","html_url":"https://github.com/workcraft-lp/workcraft-test/issues/19","id":131420890,"number":19,"title":"Hanning connection in STG after copy-paste of a page","user":{"login":"workcraft-lp","id":17065435,"avatar_url":"https://avatars.githubusercontent.com/u/17065435?v=3","gravatar_id":"","url":"https://api.github.com/users/workcraft-lp","html_url":"https://github.com/workcraft-lp","followers_url":"https://api.github.com/users/workcraft-lp/followers","following_url":"https://api.github.com/users/workcraft-lp/following{/other_user}","gists_url":"https://api.github.com/users/workcraft-lp/gists{/gist_id}","starred_url":"https://api.github.com/users/workcraft-lp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/workcraft-lp/subscriptions","organizations_url":"https://api.github.com/users/workcraft-lp/orgs","repos_url":"https://api.github.com/users/workcraft-lp/repos","events_url":"https://api.github.com/users/workcraft-lp/events{/privacy}","received_events_url":"https://api.github.com/users/workcraft-lp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/priority/high","name":"priority/high","color":"ededed"},{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/tag/connection","name":"tag/connection","color":"ededed"},{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/tag/copy","name":"tag/copy","color":"ededed"},{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/tag/page","name":"tag/page","color":"ededed"},{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/tag/stg","name":"tag/stg","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/milestones/9","html_url":"https://github.com/workcraft-lp/workcraft-test/milestones/3.0.1","labels_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/milestones/9/labels","id":1563905,"number":9,"title":"3.0.1","description":null,"creator":{"login":"workcraft-lp","id":17065435,"avatar_url":"https://avatars.githubusercontent.com/u/17065435?v=3","gravatar_id":"","url":"https://api.github.com/users/workcraft-lp","html_url":"https://github.com/workcraft-lp","followers_url":"https://api.github.com/users/workcraft-lp/followers","following_url":"https://api.github.com/users/workcraft-lp/following{/other_user}","gists_url":"https://api.github.com/users/workcraft-lp/gists{/gist_id}","starred_url":"https://api.github.com/users/workcraft-lp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/workcraft-lp/subscriptions","organizations_url":"https://api.github.com/users/workcraft-lp/orgs","repos_url":"https://api.github.com/users/workcraft-lp/repos","events_url":"https://api.github.com/users/workcraft-lp/events{/privacy}","received_events_url":"https://api.github.com/users/workcraft-lp/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":9,"state":"closed","created_at":"2016-02-04T17:38:57Z","updated_at":"2016-02-04T17:48:26Z","due_on":null,"closed_at":"2016-02-04T17:38:57Z"},"comments":2,"created_at":"2016-02-04T17:39:54Z","updated_at":"2016-02-04T17:48:26Z","closed_at":"2016-02-04T17:48:26Z","body":"To reproduce:\n\n1) Create an STG model with a sequence of 3 transition (connected in a series)\n2) Group the first two of them into a page\n3) Select the whole model and copy-paste it\n4) Enter the copy page and remove the second transition (the one which is connected to the outside of the page)\n\nThe following exception is thrown (see the note at the bottom!):\n\nException in thread \"AWT-EventQueue-0\" java.lang.RuntimeException: Cannot remove a hanging connection because its parent is not a Container.\n\tat org.workcraft.dom.DefaultHangingConnectionRemover.handleEvent(DefaultHangingConnectionRemover.java:61)\n\tat org.workcraft.observation.HierarchySupervisor.notify(HierarchySupervisor.java:77)\n\tat org.workcraft.observation.ObservableHierarchyImpl.sendNotification(ObservableHierarchyImpl.java:39)\n\tat org.workcraft.dom.AbstractGroup.removeInternal(AbstractGroup.java:85)\n\tat org.workcraft.dom.AbstractGroup.remove(AbstractGroup.java:123)\n\tat org.workcraft.dom.math.MathGroup.remove(MathGroup.java:63)\n\tat org.workcraft.dom.DefaultMathNodeRemover.decRef(DefaultMathNodeRemover.java:48)\n\tat org.workcraft.dom.DefaultMathNodeRemover.nodeRemoved(DefaultMathNodeRemover.java:76)\n\tat org.workcraft.dom.DefaultMathNodeRemover.handleEvent(DefaultMathNodeRemover.java:57)\n\tat org.workcraft.observation.HierarchySupervisor.notify(HierarchySupervisor.java:77)\n\tat org.workcraft.observation.ObservableHierarchyImpl.sendNotification(ObservableHierarchyImpl.java:39)\n\tat org.workcraft.dom.AbstractGroup.remove(AbstractGroup.java:135)\n\tat org.workcraft.dom.visual.VisualPage.remove(VisualPage.java:211)\n\tat org.workcraft.dom.visual.AbstractVisualModel.deleteSelection(AbstractVisualModel.java:550)\n\tat org.workcraft.workspace.WorkspaceEntry.delete(WorkspaceEntry.java:358)\n\tat org.workcraft.gui.MainWindow.delete(MainWindow.java:1184)\n\tat org.workcraft.gui.MainWindowActions$17.run(MainWindowActions.java:176)\n\tat org.workcraft.gui.MainWindow$1.actionPerformed(MainWindow.java:108)\n\tat org.workcraft.gui.actions.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:58)\n\tat org.workcraft.gui.actions.ActionMenuItem.access$0(ActionMenuItem.java:55)\n\tat org.workcraft.gui.actions.ActionMenuItem$ActionForwarder.actionPerformed(ActionMenuItem.java:34)\n\tat javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\n\tat javax.swing.AbstractButton.doClick(AbstractButton.java:374)\n\tat javax.swing.AbstractButton.doClick(AbstractButton.java:354)\n\tat javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:798)\n\tat javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1661)\n\tat javax.swing.JComponent.processKeyBinding(JComponent.java:2851)\n\tat javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:687)\n\tat javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:695)\n\tat javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:695)\n\tat javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:666)\n\tat javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:285)\n\tat javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:272)\n\tat javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)\n\tat javax.swing.JComponent.processKeyBindings(JComponent.java:2920)\n\tat javax.swing.JComponent.processKeyEvent(JComponent.java:2814)\n\tat java.awt.Component.processEvent(Component.java:6065)\n\tat java.awt.Container.processEvent(Container.java:2045)\n\tat java.awt.Component.dispatchEventImpl(Component.java:4649)\n\tat java.awt.Container.dispatchEventImpl(Container.java:2103)\n\tat java.awt.Component.dispatchEvent(Component.java:4475)\n\tat java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1879)\n\tat java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:770)\n\tat java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1046)\n\tat java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:913)\n\tat java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:735)\n\tat java.awt.Component.dispatchEventImpl(Component.java:4519)\n\tat java.awt.Container.dispatchEventImpl(Container.java:2103)\n\tat java.awt.Window.dispatchEventImpl(Window.java:2588)\n\tat java.awt.Component.dispatchEvent(Component.java:4475)\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)\n\tat java.awt.EventQueue.access$300(EventQueue.java:96)\n\tat java.awt.EventQueue$2.run(EventQueue.java:634)\n\tat java.awt.EventQueue$2.run(EventQueue.java:632)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)\n\tat java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:119)\n\tat java.awt.EventQueue$3.run(EventQueue.java:648)\n\tat java.awt.EventQueue$3.run(EventQueue.java:646)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:645)\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:138)\n\n\nNote:  if you undo the delete action and try to remove the transition again it work fine.\n\n------------------------------------\nThis issue was imported from Launchpad bug.\n\n * date created: 2014-05-21T11:15:11Z\n * date closed: 2014-07-16T10:35:32Z\n * owner: danilovesky\n * assignee: sgaflv\n * the launchpad url was https://bugs.launchpad.net/bugs/1321714\n"}}