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 18228 - NPE in CloneableEditor
Summary: NPE in CloneableEditor
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-30 14:27 UTC by Martin Roskanin
Modified: 2008-12-22 18:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to fix the bug. (943 bytes, patch)
2001-11-30 15:06 UTC, Peter Zavadsky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roskanin 2001-11-30 14:27:43 UTC
Build 200111300330 - release33
JDK 1.3
Win2000


Fri Nov 30 15:14:27 GMT+01:00 2001: java.lang.NullPointerException: <no message>
java.lang.NullPointerException
	at org.openide.text.CloneableEditor.updatePasteAction(CloneableEditor.java:476)
	at org.openide.text.CloneableEditor.componentActivated(CloneableEditor.java:426)
	at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.componentActivated(JavaEditor.java:1160)
	at org.openide.windows.WindowManager.activateComponent(WindowManager.java:157)
	at org.netbeans.core.windows.WindowManagerImpl.activateComponent(WindowManagerImpl.java:705)
	at org.netbeans.core.windows.frames.DefaultContainerImpl.doActivateComponent(DefaultContainerImpl.java:558)
	at org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedComponent(DefaultContainerImpl.java:732)
	at org.netbeans.core.windows.frames.DefaultContainerImpl$2.run(DefaultContainerImpl.java:891)
	at org.netbeans.core.windows.frames.DefaultContainerImpl$4.run(DefaultContainerImpl.java:906)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
[catch] 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 Peter Zavadsky 2001-11-30 14:35:58 UTC
Fixed in [release33].

Fix:
openide/../openide/text/CloneableEditor.java [1.25.4.3]
Comment 2 Peter Zavadsky 2001-11-30 14:46:29 UTC
Added keyword. Added Petr to CC.
Comment 3 Peter Zavadsky 2001-11-30 15:06:10 UTC
Created attachment 3642 [details]
Patch to fix the bug.
Comment 4 Peter Zavadsky 2001-12-03 08:55:56 UTC
Integrated to [release330].
Changed milestone to 3.3, removed 3.3.0_CANDIDATE keyword.

Fix:
openide/../openide/text/CloneableEditor.java [1.25.6.2]
Comment 5 Jan Zajicek 2001-12-04 11:04:01 UTC
Verified - revisions 1.25.4.3 and 1.25.6.2.
Comment 6 Quality Engineering 2003-07-01 16:25:11 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.