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 54191 - NullPointerException on startup
Summary: NullPointerException on startup
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: L&F
Depends on:
Blocks:
 
Reported: 2005-01-30 15:53 UTC by lbloch
Modified: 2008-12-22 21:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log from NetBeans run (43.23 KB, text/plain)
2005-01-30 15:55 UTC, lbloch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lbloch 2005-01-30 15:53:51 UTC
daily build IDE 200501271900 gives
NullPointerException on startup using the Motif
look and feel at 
com.sun.java.swing.plaf.motif.MotifButtonUI
.paintIcon  (MotifButtonUI.java:92) 

repeated for a number of MotifButtonUI.paintIcon()
calls
Comment 1 lbloch 2005-01-30 15:55:01 UTC
Created attachment 20060 [details]
log from NetBeans run
Comment 2 Milos Kleint 2005-02-02 14:55:59 UTC
Stando, could this be connected to your startup repaint tuning? it
seems the UI class calls Graphics.getClip().getBounds(), where clip is
null.
Comment 3 Stanislav Aubrecht 2005-02-02 15:34:14 UTC
fixed

this issue is not related to the main window repaint. the tab
displayer ui is creating it's own private graphics for paiting. adding
setClip() fixed the problem. 

Checking in BasicScrollingTabDisplayerUI.java;
/cvs/core/swing/tabcontrol/src/org/netbeans/swing/tabcontrol/plaf/BasicScrollingTabDisplayerUI.java,v
 <--  BasicScrollingTabDisplayerUI.java
new revision: 1.6; previous revision: 1.5
done
Comment 4 Marian Mirilovic 2005-07-19 15:45:06 UTC
verified in NB.dev(20050718-1800)