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 7332 - Null pointer exception on pasting of java class.
Summary: Null pointer exception on pasting of java class.
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-09 16:40 UTC by pzajac
Modified: 2007-09-26 09:14 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 pzajac 2000-08-09 16:40:14 UTC
Null exception occured in cuting/copying and then pasting of Java class.


java.lang.NullPointerException
        at
org.netbeans.modules.java.SourceElementImpl.findUnguarded(SourceElementImpl.java:1108)

        at
org.netbeans.modules.java.ElementImpl.createSiblingBounds(ElementImpl.java:415)

        at
org.netbeans.modules.java.ElementImpl.createSiblingBounds(ElementImpl.java:431)

        at
org.netbeans.modules.java.ElementsCollection.change(ElementsCollection.java:137)

        at
org.netbeans.modules.java.SourceElementImpl.changeClasses(SourceElementImpl.java:397)

        at
org.openide.src.SourceElement.addClass(SourceElement.java:167)
        at org.netbeans.modules.java.JavaNode$5.run(JavaNode.java:314)
        at
org.netbeans.editor.BaseDocument.runAtomicAsUser(BaseDocument.java:709)
        at
org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:242)

        at
org.openide.text.NbDocument.runAtomicAsUser(NbDocument.java:299)
        at
org.netbeans.modules.java.SourceElementImpl.runAtomicAsUser(SourceElementImpl.java:536)

        at
org.openide.src.SourceElement.runAtomicAsUser(SourceElement.java:283)
        at
org.netbeans.modules.java.JavaNode.pasteElement(JavaNode.java:322)
        at
org.netbeans.modules.java.JavaNode.access$0(JavaNode.java:306)
        at org.netbeans.modules.java.JavaNode$4.paste(JavaNode.java:296)

        at
org.openide.actions.PasteAction.performAction(PasteAction.java:109)
        at
org.openide.actions.PasteAction$ActSubMenuModel.performActionAt(PasteAction.java:195)

        at
org.openide.awt.Actions$SubMenuBridge$ISubActionListener.actionPerformed(Actions.java:503)

        at org.openide.awt.Actions$SubMenu.doClick(Actions.java:773)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)

        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        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 2000-08-16 10:30:59 UTC
[dev-18] corrected.
PLEASE! REMEMBER to include number of the buggy build!
Comment 2 pzajac 2000-08-29 17:51:59 UTC
It works without problems.
Comment 3 Quality Engineering 2003-07-01 13:20:43 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.