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 38315 - NPE in javax.swing.text.html.HRuleView.paint
Summary: NPE in javax.swing.text.html.HRuleView.paint
Status: VERIFIED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: RANDOM
: 48849 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-24 00:34 UTC by jbannon
Modified: 2008-12-22 21:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log as instructed by Error message (92.41 KB, text/plain)
2003-12-24 00:36 UTC, jbannon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jbannon 2003-12-24 00:34:45 UTC
When launching help and doing a search for "GUI" 
I get the following error:

java.lang.NullPointerException
	at javax.swing.text.html.HRuleView.paint
(HRuleView.java:124)
	at javax.swing.text.BoxView.paintChild
(BoxView.java:144)
	at javax.swing.text.BoxView.paint
(BoxView.java:407)
	at javax.swing.text.BoxView.paintChild
(BoxView.java:144)
	at javax.swing.text.BoxView.paint
(BoxView.java:407)
	at javax.swing.text.ParagraphView.paint
(ParagraphView.java:569)
	at 
javax.swing.text.html.ParagraphView.paint
(ParagraphView.java:220)
	at javax.swing.text.BoxView.paintChild
(BoxView.java:144)
	at javax.swing.text.BoxView.paint
(BoxView.java:407)
	at javax.swing.text.html.BlockView.paint
(BlockView.java:264)
	at javax.swing.text.BoxView.paintChild
(BoxView.java:144)
	at javax.swing.text.BoxView.paint
(BoxView.java:407)
	at javax.swing.text.html.BlockView.paint
(BlockView.java:264)
	at 
javax.swing.plaf.basic.BasicTextUI$RootView.paint
(BasicTextUI.java:1319)
	at 
javax.swing.plaf.basic.BasicTextUI.paintSafely
(BasicTextUI.java:636)
	at 
javax.swing.plaf.basic.BasicTextUI.paint
(BasicTextUI.java:770)
	at 
javax.swing.plaf.basic.BasicTextUI.update
(BasicTextUI.java:749)
	at javax.swing.JComponent.paintComponent
(JComponent.java:541)
	at javax.swing.JComponent.paint
(JComponent.java:808)
	at javax.swing.JComponent.paintChildren
(JComponent.java:647)
	at javax.swing.JComponent.paint
(JComponent.java:817)
	at 
javax.swing.JViewport.paintViaBackingStore
(JViewport.java:606)
	at javax.swing.JViewport.paint
(JViewport.java:763)
	at javax.swing.JComponent.paintChildren
(JComponent.java:647)
	at javax.swing.JComponent.paint
(JComponent.java:817)
	at 
javax.swing.JComponent.paintWithOffscreenBuffer
(JComponent.java:4795)
	at 
javax.swing.JComponent.paintDoubleBuffered
(JComponent.java:4748)
	at 
javax.swing.JComponent._paintImmediately
(JComponent.java:4692)
	at 
javax.swing.JComponent.paintImmediately
(JComponent.java:4495)
	at 
javax.swing.RepaintManager.paintDirtyRegions
(RepaintManager.java:410)
[catch] at 
javax.swing.SystemEventQueueUtilities$ComponentWo
rkRequest.run(SystemEventQueueUtilities.java:117)
	at 
java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent
(EventQueue.java:454)
	at 
java.awt.EventDispatchThread.pumpOneEventForHiera
rchy(EventDispatchThread.java:201)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarc
hy(EventDispatchThread.java:151)
	at 
java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:145)
	at 
java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run
(EventDispatchThread.java:100)

I have searched and can't find an instance of 
this exception.
Comment 1 jbannon 2003-12-24 00:36:14 UTC
Created attachment 12665 [details]
IDE Log as instructed by Error message
Comment 2 jbannon 2003-12-24 11:40:36 UTC
Some other information that may be of use. 

Firstly, the version number! Version 3.5.1 build 200307302351 
downloaded along with the Sun Java SDK v1.4.2. I set-up the SDK and 
the NetBeans interface using the default installation locations and 
then downloaded and installed all the latest available modules from 
the web site, including the hot fixes. I installed these in the 
global catalogue. 

I am running Windows XP Professional SP1 with all the latest 
security patches and updates (too many to list here).

I am also running Norton Internet Security 2002 with the personal 
firewall and anti-virus enabled. This has been giving me trouble in 
other areas, specifically with the database engines I have 
installed. I have turned the security down as far as I dare to just 
block known trojans, alerts on unused ports and straightforward 
monitoring. Unfortunately, I can't uses a proxy server as Win XP 
doesn't have one and my ISP doesn't provide a proxy service and I 
can't seem to allow individual ports to communicate and block the 
rest until I need them. The problems with the DB engines seem to 
have been cured and NetBeans connects OK, but it may perhaps be 
significant.

Database engines I have installed are Oracle 9i Personal Edition 
(9.2.1.0), IBM DB2 Personal Edition (8 SP3), SQL Server 2000 
Developement Edition (SP3) and MySQL MaxDB version 7.5.0.5. I also 
have MS Access 2002 with all the latest updates. The first 2 are 
heavily dependent on Java and have installed different machines. The 
Java machine installed with Oracle is 1.3.1 and this appears in the 
path and in the Class path whereas NetBeans does not. This might be 
significant.

Finally, I have MinGW with its version of gcj and java machine 
installed.

The error would appear to be spasmodic and not easily repeatable.
Comment 3 Petr Jiricka 2004-01-15 18:22:26 UTC
Reassigning to usersguide - hopefully this is the right category.
Comment 4 Patrick Keegan 2004-02-26 12:08:50 UTC
switching to core/help system. 
Comment 5 Patrick Keegan 2004-02-26 12:09:28 UTC
It seems to me that others have run across these kinds of intermittent
things before and not been able to reproduce them, but I can't find
the issue number.
Comment 6 _ ttran 2004-02-26 15:15:06 UTC
that's the well known problem (bug) in Swing HTML renderer.  Jesse
probably knows the JDK bug number
Comment 7 Jesse Glick 2004-02-26 16:29:39 UTC
Actually Tim is probably the one who knows what to mark this duplicate of.

I haven't seen this particular exception before. It's just some
random, unreproducible exception in Swing HTML rendering code, I
suppose. Probably no good way to track it down.
Comment 8 _ tboudreau 2004-02-26 17:31:09 UTC
Well, not sure how reproducible it is, but this is a simple missing null-check in 
javax.swing.text.html.HRuleView:

HRuleView calls:
            Color bg = getContainer().getBackground();

And View.getContainer() is implemented as:
    public Container getContainer() {
	View v = getParent();
	return (v != null) ? v.getContainer() : null;
    }

I'll file a JDK bug on it.
Comment 9 _ tboudreau 2004-04-19 14:06:41 UTC
Reassigning to Marek, new owner of output window and help system
Comment 10 mslama 2004-06-21 15:03:32 UTC
JDK bug. Closing. (You can search JDK bug database to find status.)
Comment 11 Jesse Glick 2004-06-21 17:16:19 UTC
Hold on, need the actual bug # to be listed here. *You* should search
the bug database. Or Tim did you already file some bug for this?
Comment 12 mslama 2004-06-22 08:50:09 UTC
Tim did you file bug to JDK? I did not find any but only read only
copy of this issue ie.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4972467 but this is
not issue Tim promised to file.
Comment 13 mslama 2004-08-03 15:41:28 UTC
Tim did you file bug against JDK or not?
Comment 14 mslama 2004-08-03 15:56:47 UTC
I filed issue #5082016 in JDK bug database.
Comment 15 Patrick Keegan 2004-08-03 17:15:19 UTC
reopening, just so that it's easier to track the issue. I set the
target milestone to "future", so hopefully that does not reflect on
Marek's bug counts. :)
Comment 16 Jesse Glick 2004-08-03 17:52:03 UTC
Sorry Patrick, but if it's not a bug we can fix, we do not want it
open. Could keep a separate list somewhere of JDK bugs that might
affect help.
Comment 17 Jan Pokorsky 2004-09-21 17:03:31 UTC
*** Issue 48849 has been marked as a duplicate of this issue. ***
Comment 18 Marian Mirilovic 2005-01-25 09:15:38 UTC
verified in NB4.1(200501241900)