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 9334 - NPE from Splash.SplashComponent.paint in Japanese locale
Summary: NPE from Splash.SplashComponent.paint in Japanese locale
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-01 08:10 UTC by KISHIDA masami
Modified: 2008-12-23 10:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KISHIDA masami 2001-02-01 08:10:36 UTC
>Log Session: 2001N21ú 1603ª08bJST
>System Info:
  Product Version          = Forte(tm) for Java(tm), release 2.0, Community
Edition (Build 1160)
  IDE Versioning           = IDE/1 spec=1.1.0.1 impl=Build 1160
  Operating System         = Windows NT Version 4.0 Running on x86
  Java Version             = 1.3.0
  Java VM Version          = Java HotSpot(TM) Client VM 1.3.0-C
  Java Vendor              = Sun Microsystems Inc.
  Java Vendor URL          = http://java.sun.com/
  Java Home                = C:\jdk1.3\jre
  Java Class Version       = 47.0
  System Locale            = ja_JP
  JIT                      = unknown or not used
  Home Dir                 = C:\WINNT\Profiles\mkishida
  Current Directory        = o:\forte4j
  Forte for Java Home      = O:\forte4j
  Forte for Java User Home = O:\forte4j
  System Directory         = O:\forte4j\system
  CLASSPATH                =
O:\forte4j\lib\patches\openide-compat.jar;O:\forte4j\lib\developer.jar;O:\forte4
j\lib\openide.jar;O:\forte4j\lib\updater.jar;O:\forte4j\lib\ext\AbsoluteLayout.j
ar;O:\forte4j\lib\ext\icebrowserlitebean.jar;O:\forte4j\lib\ext\javac.jar;O:\for
te4j\lib\ext\jaxp.jar;O:\forte4j\lib\ext\jh.jar;O:\forte4j\lib\ext\parser.jar;O:
\forte4j\lib\ext\regexp.jar;O:\forte4j\lib\ext\servlet.jar;C:\jdk1.3\lib\dt.jar;
C:\jdk1.3\lib\tools.jar

[snip]

[INFO] Loaded modules: org.netbeans.modules.clazz/1 (1.2.1/1160);
org.netbeans.modules.html/1 (1.2.1/1160); org.netbeans.modules.httpserver/1
(1.2.1/1160); org.netbeans.modules.icebrowser/1 (1.2.1/1160);
org.netbeans.modules.image/1 (1.2.1/1160); org.netbeans.modules.properties/1
(1.2.1/1160); org.netbeans.modules.text/1 (1.2.1/1160);
org.netbeans.modules.usersguide/1 (1.2.1/1160); org.openidex.util/1
(1.2.1/1160); org.netbeans.modules.autoupdate/1 (1.3.1/1160);
org.netbeans.modules.debugger.core/1 (1.1.5/1160); org.netbeans.modules.applet/1
(1.2.1/1160); org.netbeans.modules.debugger.debug/1 (1.4.1/1160);
org.netbeans.modules.debugger.jpda/1 (1.4.1/1160); org.netbeans.modules.editor/1
(1.4.1/1160); org.netbeans.modules.jarpackager/1 (1.2.1/1160);
org.netbeans.modules.java/1 (1.2.1/1160); org.netbeans.modules.beans/1
(1.2.1/1160); org.netbeans.modules.form/1 (1.2.1/1160);
org.netbeans.modules.i18n/1 (1.2.1/1160); org.netbeans.modules.javadoc/1
(1.2.1/1160); org.netbeans.modules.objectbrowser/1 (1.2.1/1160);
org.netbeans.modules.projects/1 (1.2.1/1160); org.netbeans.modules.utilities/1
(1.2.1/1160); org.netbeans.modules.vcs.cmdline/1 (1.3.1/1160);
org.netbeans.modules.web.core/1 (1.1.3/1160)
Exception occurred during event dispatching:
java.lang.NullPointerException
	at org.netbeans.core.Splash$SplashComponent.paint(Splash.java:256)
	at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:23)
	at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:54)
	at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:91)
	at java.awt.Container.paint(Container.java:960)
	at sun.awt.RepaintArea.paint(RepaintArea.java:298)
	at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:193)
	at java.awt.Component.dispatchEventImpl(Component.java:2665)
	at java.awt.Container.dispatchEventImpl(Container.java:1213)
	at java.awt.Window.dispatchEventImpl(Window.java:912)
	at java.awt.Component.dispatchEvent(Component.java:2499)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
	at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 Svata Dedic 2001-02-01 08:39:59 UTC
Is there a reason for assigning the bug to the Clazz module ? I don't see any
clue in the stacktrace; could you, please, describe the problem ?
Comment 2 KISHIDA masami 2001-02-01 09:14:59 UTC
Sorry, I think this NullPointerException is ocurred in clazz, but not correct.
This trace is a trasce of loading clazz module and I think it's mean that
exception occurred during event dispatch.
Comment 3 Svata Dedic 2001-02-01 10:12:59 UTC
Never mind - reassigning to core because of
	org.netbeans.core.Splash$SplashComponent.paint(Splash.java:256)
Comment 4 Robert Dankanin 2001-02-01 14:29:59 UTC
Please fill the "Summary" field and add more information (e.g. steps to
reproduce if possible). Thank you.
Comment 5 Jesse Glick 2001-02-05 17:18:59 UTC
Sample summary, correct if necessary.
Comment 6 Jesse Glick 2001-03-26 16:40:30 UTC
An offhand analysis:

- the NPE is apparently thrown from this line:

graphics.drawString(text, rect.x, rect.y + fm.getAscent());

- in this context, neither 'graphics' nor 'rect' should be null

- so fm is null

- so java.awt.Graphics.getFontMetrics returned null

- this is not mentioned in Javadoc as a possibility, so maybe JDK bug?

Someone with a Japanese machine should insert debug code and figure out what is
in fact null.
Comment 7 _ ttran 2001-09-25 14:06:03 UTC
added test against null
Comment 8 Quality Engineering 2003-07-01 16:02:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 9 Quality Engineering 2003-07-01 16:27:01 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.