deweese     2003/11/03 03:12:44

  Modified:    sources/org/apache/batik/swing/svg JSVGComponent.java
  Log:
  Fixed NPE in event dispatch.
  
  Revision  Changes    Path
  1.89      +3 -5      xml-batik/sources/org/apache/batik/swing/svg/JSVGComponent.java
  
  Index: JSVGComponent.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/swing/svg/JSVGComponent.java,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- JSVGComponent.java        2 Nov 2003 23:19:01 -0000       1.88
  +++ JSVGComponent.java        3 Nov 2003 11:12:43 -0000       1.89
  @@ -653,11 +653,9 @@
               // before we install the new document otherwise bad
               // things can happen with the update manager.
               addUpdateManagerListener(new UpdateManagerAdapter () {
  -                    UpdateManager um = updateManager;
                       public void managerStopped(UpdateManagerEvent e) {
  -                        // Remove ourselves from the old update manger,
  -                        // and install the new document.
  -                        um.removeUpdateManagerListener(this);
  +                        // Remove ourselves and install the new document.
  +                        JSVGComponent.this.removeUpdateManagerListener(this);
                           synchronized (JSVGComponent.this) {
                               EventQueue.invokeLater(afterStopRunnable);
                               afterStopRunnable = null;
  
  
  

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

Reply via email to