This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171890 - NullPointerException at sun.font.FontDesignMetrics.stringWidth
Summary: NullPointerException at sun.font.FontDesignMetrics.stringWidth
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: t_h
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 09:59 UTC by Jaromir Uhrik
Modified: 2009-09-11 21:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 158202


Attachments
stacktrace (4.82 KB, text/plain)
2009-09-10 09:59 UTC, Jaromir Uhrik
Details
ide.log attached... (31.72 KB, text/plain)
2009-09-10 10:14 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-09-10 09:59:47 UTC
Build: NetBeans IDE Dev (Build cdev-1376-on-090910)
VM: Java HotSpot(TM) Client VM, 1.5.0_20-141, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_20-b02-315
OS: Mac OS X, 10.5.8, i386

User Comments:
juhrik: Double clicked on the member (myself) icon in Members node of kenai dashboard and the exception appeared...



Stacktrace: 
java.lang.NullPointerException
        at sun.font.FontDesignMetrics.stringWidth(FontDesignMetrics.java:280)
        at com.sun.java.swing.SwingUtilities2.stringWidth(SwingUtilities2.java:300)
        at apple.laf.CUIAquaTabbedPaneCopyFromBasic.calculateTabWidth(CUIAquaTabbedPaneCopyFromBasic.java:1445)
        at apple.laf.CUIAquaTabbedPaneCopyFromBasic.calculateMaxTabWidth(CUIAquaTabbedPaneCopyFromBasic.java:1456)
        at apple.laf.CUIAquaTabbedPaneCopyFromBasic$TabbedPaneLayout.calculateSize(CUIAquaTabbedPaneCopyFromBasic.java:2017)
        at apple.laf.CUIAquaTabbedPaneCopyFromBasic$TabbedPaneLayout.minimumLayoutSize(CUIAquaTabbedPaneCopyFromBasic.java:1969)
Comment 1 Jaromir Uhrik 2009-09-10 09:59:52 UTC
Created attachment 87413 [details]
stacktrace
Comment 2 Jaromir Uhrik 2009-09-10 10:14:02 UTC
This issue appears whenever I want to work with chat. So the steps to reproduce:
-login to kenai
-click on the envelop in the status bar 
-->> the exception appears
Comment 3 Jaromir Uhrik 2009-09-10 10:14:51 UTC
Created attachment 87419 [details]
ide.log attached...
Comment 4 Jaromir Uhrik 2009-09-10 10:15:55 UTC
As a consequence the chat is absolutely unusable. If the problem is not platform related please feel free to reassign to
Kenai/Chat.
Comment 5 Stanislav Aubrecht 2009-09-10 10:53:27 UTC
probably a bug in apple's jdk but it might be workaroundable by setting table title to an empty string
Comment 6 Stanislav Aubrecht 2009-09-10 11:05:10 UTC
btw, i can't reproduce this issue with the same setup using build 090909
Comment 7 Stanislav Aubrecht 2009-09-10 11:16:15 UTC
sorry, my comment should read *setting tab title to an empty string*
Comment 8 Stanislav Aubrecht 2009-09-10 11:50:04 UTC
100% reproducible in build 090910
Comment 9 Stanislav Aubrecht 2009-09-10 11:51:43 UTC
i think it was caused by recent changes to ClosableTabbedPane, ccing tomas
Comment 10 Jan Becicka 2009-09-10 11:57:08 UTC
I tried what standa suggested
http://hg.netbeans.org/cdev/rev/0f034750000f
Comment 11 t_h 2009-09-10 13:46:27 UTC
Fixed in core-main #264555626724
Comment 12 Jaromir Uhrik 2009-09-11 09:32:48 UTC
Verified in:
Product Version: NetBeans IDE Dev (Build cdev-1385-on-090911)
Java: 1.5.0_20; Java HotSpot(TM) Client VM 1.5.0_20-141
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)
Comment 13 Quality Engineering 2009-09-11 21:35:31 UTC
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0f034750000f
User: Jan Becicka <jbecicka@netbeans.org>
Log: #171890: NullPointerException at sun.font.FontDesignMetrics.stringWidth