javiercu / itsimple

Automatically exported from code.google.com/p/itsimple
Other
1 stars 0 forks source link

Default values in the class diagram #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. A class is added to the class diagram
2. An attribute is defined for this class (e.g. clear -> Boolean)
3. Set the default value as 'false' for this attribute in the class diagram
4. Add an object of the above class to the object repository (as expected, 
the value of the attribute receives false)
5. Add this object to the init object diagram (initial state)
6. When we try to generate the PDDL problem an exception is raised:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at languages.pddl.ToXPDDL.parseObjectDiagram(ToXPDDL.java:3902)
    at languages.pddl.ToXPDDL.XMLToXPDDLProblem(ToXPDDL.java:2576)
    at itSIMPLE.ItSIMPLE$58.actionPerformed(ItSIMPLE.java:4359)
    at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
    at 
org.jdesktop.swingx.JXHyperlink.fireActionPerformed(JXHyperlink.java:244)
    at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335
)
    at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:
404)
    at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListene
r.java:253)
    at java.awt.Component.processMouseEvent(Component.java:6108)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
    at java.awt.Component.processEvent(Component.java:5873)
    at java.awt.Container.processEvent(Container.java:2105)
    at java.awt.Component.dispatchEventImpl(Component.java:4469)
    at java.awt.Container.dispatchEventImpl(Container.java:2163)
    at java.awt.Component.dispatchEvent(Component.java:4295)
    at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
    at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
    at java.awt.Container.dispatchEventImpl(Container.java:2149)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4295)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
    at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav
a:275)
    at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:2
00)
    at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:190)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

What is the expected output? What do you see instead?
The expected output is the PDDL problem definition being shown to the user.
An error is seen instead.

What version of the product are you using? On what operating system?
Product version: 3.0.10
Operating system used: linux (ubuntu)

Please provide any additional information below.
It seems that the default values feature is not working properly

Original issue reported on code.google.com by tiago.va...@gmail.com on 8 Oct 2009 at 4:49

GoogleCodeExporter commented 9 years ago
Fixed in the next release. The repository diagram is no longer used for 
generated the 
problem just for object creation and reusability.

Original comment by tiago.va...@gmail.com on 2 Jun 2010 at 6:43

GoogleCodeExporter commented 9 years ago

Original comment by tiago.va...@gmail.com on 4 Nov 2010 at 4:56