Hi Linus,
 
this has been reported as issue 4929 
(http://argouml.tigris.org/issues/show_bug.cgi?id=4929).
My local patch is to allow ProjectBrowser.getInstance() to call 
ProjectBrowser.makeInstance(). I didn't attached it to the issue because it was 
said that it violates the logic of makeInstance().
The solution is to make ProjectBrowser a TRUE singleton, but I guess this can 
only be done when there is a solution for enabling modules to add items to the 
GUI (see issue 4925, http://argouml.tigris.org/issues/show_bug.cgi?id=4925), 
without requiring the init of GUI during Module subsystem init.
 
Sergio.
 

________________________________

De: [EMAIL PROTECTED] em nome de Linus Tolke
Enviada: sex 14-12-2007 6:44
Para: dev@argouml.tigris.org
Assunto: Re: [argouml-dev] Problem with the release 0.25.4


Hello again!
 
It looks to me like the ProjectBrowser now requires makeInstance(...) to be 
called before getInstance().
 
There are two solutions to this. Either fix the ProjectBrowser or make the test 
cases call makeInstance() first. At first glance I prefer the last one which 
will probably remove the possibility to create ProjectBrowser using the 
constructor without arguments and replace it with some more test code to do 
initialization. Is this the right way to go? 
 
        /Linus

 
2007/12/13, Tom Morris <[EMAIL PROTECTED]>: 

        I suspect that this is a consequence of the reordering of the
        initialization sequence.
        
        I'll do some testing to see if my theory is correct. 
        
        Tom
        
        On Dec 13, 2007 3:59 PM, Linus Tolke <[EMAIL PROTECTED]> wrote:
        > There is a problem with the JUnit test cases in the release. The 
problem is
        > with the guitests that are not normally run because of the need of 
the 
        > screen.
        >
        > Here is the backtrace:
        >
        >  testProjectWithContents Error N/A
        >
        > java.lang.NullPointerException
        > at java.awt.Container.addImpl(Container.java:1031)
        > at java.awt.Container.add(Container.java:395)
        > at org.tigris.swidgets.MultipleSplitPane.add(Unknown Source)
        >  at org.tigris.swidgets.BorderSplitPane.add(Unknown Source)
        > at org.argouml.ui.ProjectBrowser.addPanel (ProjectBrowser.java:571)
        > at 
org.argouml.ui.ProjectBrowser.assemblePanels(ProjectBrowser.java:424)
        > at org.argouml.ui.ProjectBrowser .(ProjectBrowser.java:276)
        > at org.argouml.ui.ProjectBrowser.(ProjectBrowser.java :244)
        > at org.argouml.ui.ProjectBrowser.getInstance(ProjectBrowser.java:348)
        > at 
org.argouml.uml.ui.ActionOpenProject.doCommand(ActionOpenProject.java
        > :170)
        > at org.argouml.application.Main.performCommands (Main.java:634)
        > at org.argouml.util.CheckMain.doCommand(CheckMain.java:52)
        > at
        > 
org.argouml.ui.cmd.GUITestActionGotoDiagram.testProjectWithContents(GUITestActionGotoDiagram.java
        > :74)
        >
        >
        > I don't really understand this problem. I will not proceed tonight 
then. I
        > attempt to dig into the problem tomorrow night. If anyone else 
understand
        > the problem please fix it!
        >
        >         /Linus 
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to