NullPointerException in Together/jdk1.4.1-p3

Georg-W. Koltermann g.w.k at web.de
Wed Jul 23 14:53:14 PDT 2003


It occured to me that it might be possible to fix the problem by
applying the patch included below.  Unfortunately this is disallowed by
the Together license, so we cannot be sure.

On Mi, 2003-07-23 at 23:18, Lutz Bichler wrote:
> On Tuesday 20 May 2003 00:16, Georg-W. Koltermann wrote:
> > Together is known not to work with JDK 1.4.x.  Togethersoft stated that
> > the next version would work with 1.4.
> >
> > However, that statement was made before they were acquired by Borland
> >
> > :-)
> >
> > --
> > Regards,
> > Georg.
> 
> Using jdk1.4.1 on Linux or Windows it works ok. So it seems to be a bug in the 
> BSD´s jdk1.4.1-p3 .
> 
> Cheers
> 	Lutz
-------------- next part --------------
--- com/togethersoft/util/ui/plaf/metal/OIMetalSplitPaneUI.jad	Wed Jul  9 10:38:09 2003
+++ com/togethersoft/util/ui/plaf/metal/OIMetalSplitPaneUI.java	Wed Jul  9 13:56:41 2003
@@ -27,9 +27,14 @@
     protected void installKeyboardActions()
     {
         super.installKeyboardActions();
-        super.splitPane.unregisterKeyboardAction(KeyStroke.getKeyStroke(117, 0));
-        if(Workarounds.shouldPatchLookAndFeel())
-            super.splitPane.unregisterKeyboardAction(super.dividerResizeToggleKey);
+        final KeyStroke stroke = KeyStroke.getKeyStroke(117, 0);
+	if (stroke != null)
+            super.splitPane.unregisterKeyboardAction(stroke);
+        if(Workarounds.shouldPatchLookAndFeel()) {
+	    final KeyStroke superStroke = super.dividerResizeToggleKey;
+	    if (superStroke != null)
+                super.splitPane.unregisterKeyboardAction(superStroke);
+	}
         super.dividerResizeToggleKey = KeyStroke.getKeyStroke(119, 8);
         super.splitPane.registerKeyboardAction(super.keyboardResizeToggleListener, super.dividerResizeToggleKey, 1);
     }


More information about the freebsd-java mailing list