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 238917 - NullPointerException at org.netbeans.modules.java.editor.imports.ClipboardHandler$ImportingTransferHandler$1$1.handleDeclaration
Summary: NullPointerException at org.netbeans.modules.java.editor.imports.ClipboardHan...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 09:25 UTC by oyviste
Modified: 2014-01-10 12:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204337


Attachments
stacktrace (11.97 KB, text/plain)
2013-11-28 09:25 UTC, oyviste
Details
stacktrace (11.32 KB, text/plain)
2013-12-10 14:51 UTC, Tomas Stupka
Details
stacktrace (10.89 KB, text/plain)
2014-01-08 15:27 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oyviste 2013-11-28 09:25:21 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
GUEST: Ctrl-X to cut text

oyviste: Cutting text in Java code.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.editor.imports.ClipboardHandler$ImportingTransferHandler$1$1.handleDeclaration(ClipboardHandler.java:492)
   at org.netbeans.modules.java.editor.imports.ClipboardHandler$ImportingTransferHandler$1$1.visitVariable(ClipboardHandler.java:499)
   at org.netbeans.modules.java.editor.imports.ClipboardHandler$ImportingTransferHandler$1$1.visitVariable(ClipboardHandler.java:447)
   at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:864)
   at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
   at org.netbeans.modules.java.editor.imports.ClipboardHandler$ImportingTransferHandler$1$1.scan(ClipboardHandler.java:510)
Comment 1 oyviste 2013-11-28 09:25:23 UTC
Created attachment 142662 [details]
stacktrace
Comment 2 Tomas Stupka 2013-12-10 14:51:43 UTC
Created attachment 143015 [details]
stacktrace

ctrl+x
Comment 3 Exceptions Reporter 2013-12-23 10:30:24 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204337
Comment 4 Exceptions Reporter 2014-01-08 15:27:41 UTC
Created attachment 143719 [details]
stacktrace

Cut after moving code which caused java file to not compile.
Comment 5 Dusan Balek 2014-01-10 12:26:39 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/016d41fbf2c8