{"action":"opened","issue":{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/16","repository_url":"https://api.github.com/repos/workcraft-lp/workcraft-test","labels_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/16/comments","events_url":"https://api.github.com/repos/workcraft-lp/workcraft-test/issues/16/events","html_url":"https://github.com/workcraft-lp/workcraft-test/issues/16","id":131420877,"number":16,"title":"Broken copy-paste of conditional vertices in CPOG plugin","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/copy","name":"tag/copy","color":"ededed"},{"url":"https://api.github.com/repos/workcraft-lp/workcraft-test/labels/tag/cpog","name":"tag/cpog","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-04T17:39:52Z","updated_at":"2016-02-04T17:39:52Z","closed_at":null,"body":"Create a CPOG with a condition on a vertex and try to copy it.\n\nException is thrown and most of the graph disappears.\n\nException in thread \"AWT-EventQueue-0\" org.workcraft.exceptions.NotFoundException: Object \"org.workcraft.plugins.cpog.Variable@3da1b0e\" was not issued a name\n\tat org.workcraft.dom.references.UniqueNameManager.getName(UniqueNameManager.java:36)\n\tat org.workcraft.plugins.stg.STGReferenceManager.getNodeReference(STGReferenceManager.java:129)\n\tat org.workcraft.dom.AbstractModel.getNodeReference(AbstractModel.java:123)\n\tat org.workcraft.plugins.serialisation.XMLModelSerialiser$1.getReference(XMLModelSerialiser.java:77)\n\tat org.workcraft.plugins.cpog.serialisation.BooleanFormulaSerialiser$1.visit(BooleanFormulaSerialiser.java:58)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:157)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:157)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:157)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:157)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:157)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:157)\n\tat org.workcraft.plugins.cpog.optimisation.booleanvisitors.FormulaToString$DelegatingPrinter.visit(FormulaToString.java:1)\n\tat org.workcraft.plugins.cpog.Variable.accept(Variable.java:68)\n\tat org.workcraft.plugins.cpog.serialisation.BooleanFormulaSerialiser.writeFormulaAttribute(BooleanFormulaSerialiser.java:65)\n\tat org.workcraft.plugins.cpog.serialisation.BooleanFormulaSerialiser.serialise(BooleanFormulaSerialiser.java:44)\n\tat org.workcraft.serialisation.xml.DefaultNodeSerialiser.doSerialisation(DefaultNodeSerialiser.java:114)\n\tat org.workcraft.serialisation.xml.DefaultNodeSerialiser.serialise(DefaultNodeSerialiser.java:134)\n\tat org.workcraft.serialisation.xml.XMLSerialisationManager.serialise(XMLSerialisationManager.java:67)\n\tat org.workcraft.serialisation.xml.XMLSerialisationManager.serialise(XMLSerialisationManager.java:72)\n\tat org.workcraft.plugins.serialisation.XMLModelSerialiser.serialise(XMLModelSerialiser.java:91)\n\tat org.workcraft.Framework.save(Framework.java:779)\n\tat org.workcraft.Framework.save(Framework.java:831)\n\tat org.workcraft.workspace.WorkspaceEntry.copy(WorkspaceEntry.java:283)\n\tat org.workcraft.gui.MainWindow.copy(MainWindow.java:1194)\n\tat org.workcraft.gui.MainWindowActions$15.run(MainWindowActions.java:154)\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:2018)\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\n\tat javax.swing.AbstractButton.doClick(AbstractButton.java:376)\n\tat javax.swing.AbstractButton.doClick(AbstractButton.java:356)\n\tat javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:802)\n\tat javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1662)\n\tat javax.swing.JComponent.processKeyBinding(JComponent.java:2878)\n\tat javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:689)\n\tat javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:697)\n\tat javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:697)\n\tat javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:668)\n\tat javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:307)\n\tat javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:293)\n\tat javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2970)\n\tat javax.swing.JComponent.processKeyBindings(JComponent.java:2962)\n\tat javax.swing.JComponent.processKeyEvent(JComponent.java:2841)\n\tat java.awt.Component.processEvent(Component.java:6282)\n\tat java.awt.Container.processEvent(Container.java:2229)\n\tat java.awt.Component.dispatchEventImpl(Component.java:4861)\n\tat java.awt.Container.dispatchEventImpl(Container.java:2287)\n\tat java.awt.Component.dispatchEvent(Component.java:4687)\n\tat java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)\n\tat java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)\n\tat java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)\n\tat java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)\n\tat java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)\n\tat java.awt.Component.dispatchEventImpl(Component.java:4731)\n\tat java.awt.Container.dispatchEventImpl(Container.java:2287)\n\tat java.awt.Window.dispatchEventImpl(Window.java:2719)\n\tat java.awt.Component.dispatchEvent(Component.java:4687)\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)\n\tat java.awt.EventQueue.access$200(EventQueue.java:103)\n\tat java.awt.EventQueue$3.run(EventQueue.java:694)\n\tat java.awt.EventQueue$3.run(EventQueue.java:692)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)\n\tat java.awt.EventQueue$4.run(EventQueue.java:708)\n\tat java.awt.EventQueue$4.run(EventQueue.java:706)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:705)\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:91)"}}