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 144205 - NPE when moving selected text in java file
Summary: NPE when moving selected text in java file
Status: RESOLVED DUPLICATE of bug 82142
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-17 15:45 UTC by lenemyt
Modified: 2008-08-19 10:46 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 lenemyt 2008-08-17 15:45:55 UTC
In code:
public final static String[] parameters = new String[]{
       "branch",
       "item",
       "commentID",
       "comment"
   };

1. select '"branch"'.
2. drag&drop it to place after "comment" (after moving line should be "comment""branch")

java.lang.NullPointerException
	at sun.awt.X11.XSelection.checkChange(XSelection.java:749)
	at sun.awt.X11.XSelection.access$200(XSelection.java:30)
	at sun.awt.X11.XSelection$SelectionEventHandler.dispatchEvent(XSelection.java:758)
	at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:482)
	at sun.awt.X11.XToolkit.run(XToolkit.java:626)
	at sun.awt.X11.XToolkit.run(XToolkit.java:560)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Jiri Prox 2008-08-19 10:46:57 UTC
Unfortunately this is JDK bug, please update your JDK

*** This issue has been marked as a duplicate of 82142 ***