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 37814 - NPE in javax.swing.SwingUtilities.getWindowAncestor()
Summary: NPE in javax.swing.SwingUtilities.getWindowAncestor()
Status: VERIFIED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords:
: 45775 45800 45901 99921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-06 02:05 UTC by _ gtzabari
Modified: 2008-12-22 14:01 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 _ gtzabari 2003-12-06 02:05:32 UTC
dev build 200311301900

  This might be a Swing/JDK bug or Netbeans. I'm
not sure but I see it quite often in this dev
build (it wasn't there before the new windowing
system).

   While using Netbeans I randomly get:

java.lang.NullPointerException
	at
javax.swing.SwingUtilities.getWindowAncestor(SwingUtilities.java:63)
	at
com.sun.java.swing.plaf.windows.WindowsRootPaneUI$AltProcessor.postProcessKeyEvent(WindowsRootPaneUI.java:158)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:637)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:831)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:741)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:592)
	at
java.awt.Component.dispatchEventImpl(Component.java:3506)
	at
java.awt.Container.dispatchEventImpl(Container.java:1627)
	at
java.awt.Window.dispatchEventImpl(Window.java:1606)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(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)
Comment 1 mslama 2003-12-10 15:02:13 UTC
Yes it is JDK exception. Please look at java.sun.com bug database if
there is such bug and file it if not. What JDK do you use? I recommend
to get latest which is now JDK 1.4.2_03.
Comment 2 _ gtzabari 2003-12-10 15:53:24 UTC
FYI: This issue is discussed at
http://developer.java.sun.com/developer/bugParade/bugs/4910211.html

   It has been fixed in tiger (JDK 1.5)
Comment 3 Marian Mirilovic 2004-03-22 14:47:01 UTC
Thanks...
verified
Comment 4 Milos Kleint 2004-07-02 08:28:25 UTC
*** Issue 45800 has been marked as a duplicate of this issue. ***
Comment 5 Milos Kleint 2004-07-02 09:12:07 UTC
*** Issue 45775 has been marked as a duplicate of this issue. ***
Comment 6 Lukas Hasik 2004-07-08 09:08:15 UTC
*** Issue 45901 has been marked as a duplicate of this issue. ***
Comment 7 mslama 2007-04-04 13:05:52 UTC
*** Issue 99921 has been marked as a duplicate of this issue. ***