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 148846 - NPE when dragging Stage from the palette to the editor
Summary: NPE when dragging Stage from the palette to the editor
Status: VERIFIED DUPLICATE of bug 131830
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-01 13:55 UTC by Martin Ryzl
Modified: 2008-10-14 12:35 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 Martin Ryzl 2008-10-01 13:55:19 UTC
netbeans-trunk-nightly-200810010201-javafx-macosx.dmg build
Mac OS/X 10.5.5, JDK 1.5.0_16

1. create a new project with an empty javafx source
2. drag the Stage into the editor (seems dragging anything has the same effect)
3. the following exception appears but the the code fragment seems to be added correctly

java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicTextUI$TextDropTargetListener.restoreComponentStateForDrop(BasicTextUI.java:2115)
	at javax.swing.plaf.basic.BasicDropTargetListener.drop(BasicDropTargetListener.java:259)
	at javax.swing.TransferHandler$SwingDropTarget.drop(TransferHandler.java:614)
	at org.openide.text.QuietEditorPane$DelegatingDropTarget.drop(QuietEditorPane.java:419)
	at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
	at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
	at java.awt.Component.dispatchEventImpl(Component.java:3926)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3903)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
	at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4007)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3861)
	at java.awt.Container.dispatchEventImpl(Container.java:2054)
	at java.awt.Window.dispatchEventImpl(Window.java:1801)
	at java.awt.Component.dispatchEvent(Component.java:3903)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Michal Skvor 2008-10-02 09:59:10 UTC

*** This issue has been marked as a duplicate of 131830 ***
Comment 2 Alexandr Scherbatiy 2008-10-14 12:35:03 UTC
verified in 2008-10-13_19-07-38.zip