[cp-patches] FYI: JTree /OpenJump fix

Roman Kennke roman at kennke.org
Wed Jun 7 07:46:05 UTC 2006


Hi Mark,
Am Dienstag, den 06.06.2006, 22:34 +0200 schrieb Mark Wielaard:
> Hi Roman,
> 
> On Tue, 2006-06-06 at 17:35 +0200, Roman Kennke wrote:
> > 2006-06-06  Roman Kennke  <kennke at aicas.com>
> > 
> >         PR 27651
> >         * javax/swing/JTree.java
> >         (JTree(TreeModel)): Call updateUI() before setModel().
> >         (setModel): Don't call updateUI here.
> 
> After this patch niffler doesn't startup anymore:
> 
> Exception during event dispatch:
> java.lang.NullPointerException
>    at
> javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.java:559)
>    at javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:518)
>    at

Interesting, this is the same exception that Pere reported that now
happens with OpenJump. Interesting detail is that I don't seem to get
this. Maybe I have some local patch here that prevents this, though none
seem to be tree related. I'll try if I get this exception in niffler,
and fix it.

/Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060607/c7b9a035/attachment.pgp


More information about the Classpath-patches mailing list