logo       

[argouml-dev] Exceptions on Menus: msg#00041

db.axion.devel

Subject: [argouml-dev] Exceptions on Menus

Hi all,

First at all, I must say that I had no time for reviewing the loading
problems I've mentioned some weeks ago. I will do in a few weeks, and
I will talk about them in this list.

Right now I have another problem with more priority for me. With the
latest version of the svn, when I click on some of the options of my
submenu, the GUI crashes. If I minimize Argo and maximize again, it
shows nice, but it is a little discomforting.

I have uploaded a screenshot here:
http://talika.eii.us.es/~penyaskito/screenshot_macmas.png

I paste the exception:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Rectangle.setBounds(Unknown Source)
at javax.swing.RepaintManager.collectDirtyComponents(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
n Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Some of my code...

private JMenuItem menuItemTraceability;
[...]
menuItemTraceability.addActionListener(this);
[...]
public void actionPerformed(ActionEvent event) {
LOG.info("User clicked on '" + event.getActionCommand() + "'");
Project p = ProjectManager.getManager().getCurrentProject();
Object ns = findNamespace();

if (ns != null) {

UMLDiagram diagram=null;
if (event.getSource().equals(menuItemTraceability))
diagram = (new
ActionTraceabilityDiagram()).createDiagram(ns);

if(diagram != null){
p.addMember(diagram);

ExplorerEventAdaptor.getInstance().modelElementAdded(ns);
TargetManager.getInstance().setTarget(diagram);
}
}
}

Thanks for your help

--
Regards,

Christian López Espínola
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise