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

Summary: NPE when moving selected text in java file
Product: editor Reporter: lenemyt <lenemyt>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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 ***