Changeset 19405

Show
Ignore:
Timestamp:
11/02/06 14:19:32 (2 years ago)
Author:
patrick
Message:

MFT [rev 19404]: Fixed a fun error that would prevent VRJConfig from exiting.

To cause this problem, I opened a configuration from the
command line and then activated it in the Control Panel.
Upon trying to exit, I believe that two attempts were made
to remove the file from the Config Broker singleton. At any
rate, an illegal argument exception was getting thrown, and
this prevented proper shutdown of everything.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/modules/vrjuggler/vrjconfig/org/vrjuggler/vrjconfig/ui/ContextToolbar.java

    r17198 r19405  
    533533      for (Iterator itr = context.getResources().iterator(); itr.hasNext(); ) 
    534534      { 
    535          broker.remove((String)itr.next()); 
     535         try 
     536         { 
     537            broker.remove((String) itr.next()); 
     538         } 
     539         // If the current file is no open in the Config Broker, an illegal 
     540         // argument exception will be thrown. We just ignore that occurrence. 
     541         catch (IllegalArgumentException ex) 
     542         { 
     543            /* Do nothing. */ ; 
     544         } 
    536545      } 
    537546