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 193775 - NullPointerException at com.sun.source.util.TreePath.<init>
Summary: NullPointerException at com.sun.source.util.TreePath.<init>
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 14:56 UTC by stosh
Modified: 2011-01-06 09:14 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175299


Attachments
stacktrace (1014 bytes, text/plain)
2010-12-23 14:56 UTC, stosh
Details
stacktrace (1014 bytes, text/plain)
2010-12-25 06:27 UTC, bitray
Details
stacktrace (1014 bytes, text/plain)
2010-12-25 08:15 UTC, bitray
Details
stacktrace (1014 bytes, text/plain)
2010-12-27 04:06 UTC, _ tboudreau
Details
stacktrace (1014 bytes, text/plain)
2010-12-27 18:51 UTC, gholmer
Details
stacktrace (1014 bytes, text/plain)
2010-12-27 22:30 UTC, esmithbss
Details
stacktrace (1014 bytes, text/plain)
2010-12-27 22:33 UTC, esmithbss
Details
stacktrace (1014 bytes, text/plain)
2010-12-28 09:57 UTC, rcasha
Details
stacktrace (1014 bytes, text/plain)
2010-12-28 16:33 UTC, esmithbss
Details
stacktrace (1014 bytes, text/plain)
2010-12-29 12:03 UTC, Vladimir Kvashin
Details
stacktrace (1014 bytes, text/plain)
2010-12-29 12:06 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stosh 2010-12-23 14:56:47 UTC
Build: NetBeans IDE Dev (Build 201012150001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
stosh: editing java code.
cutting and pasting methods, 4 at a time.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.source.util.TreePath.<init>(TreePath.java:89)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:412)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:352)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:150)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:322)
   at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:676)
Comment 1 stosh 2010-12-23 14:56:51 UTC
Created attachment 104453 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-12-25 06:06:36 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=175299
Comment 3 bitray 2010-12-25 06:27:35 UTC
Created attachment 104487 [details]
stacktrace

save code
Comment 4 bitray 2010-12-25 08:15:35 UTC
Created attachment 104490 [details]
stacktrace
Comment 5 _ tboudreau 2010-12-27 04:06:43 UTC
Created attachment 104515 [details]
stacktrace

Selecting text in a partially written abstrract class
Comment 6 gholmer 2010-12-27 18:51:45 UTC
Created attachment 104532 [details]
stacktrace

Highlighted a method parameter in the editor.
Comment 7 Exceptions Reporter 2010-12-27 20:00:46 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=175299
Comment 8 esmithbss 2010-12-27 22:30:46 UTC
Created attachment 104536 [details]
stacktrace

Pasting a method from one class to another class.
Comment 9 esmithbss 2010-12-27 22:33:45 UTC
Created attachment 104537 [details]
stacktrace

Editing a newly pasted method within a class.
Comment 10 rcasha 2010-12-28 09:57:48 UTC
Created attachment 104553 [details]
stacktrace

ctrl-C with some text selected (java source)
Comment 11 esmithbss 2010-12-28 16:33:49 UTC
Created attachment 104568 [details]
stacktrace

Highlighting text within a Java file for deletion.
Comment 12 Vladimir Kvashin 2010-12-29 12:03:59 UTC
Created attachment 104591 [details]
stacktrace

I was editing source file; exceptin occurred thrice
Comment 13 Vladimir Kvashin 2010-12-29 12:06:59 UTC
Created attachment 104592 [details]
stacktrace

Here is the code I edited:

    void DirectoryStorage(Collection<Entry> newEntries) {
        synchronized (this) {
            this.entries.clear();
            for (Entry entry : newEntries) {
                entries.put(entry.name, entry);
            }
        }
    }
Each time I copy "Collection<Entry> newEntries" into clipboard, I get an exception
Comment 15 Quality Engineering 2011-01-06 09:14:00 UTC
Integrated into 'main-golden', will be available in build *201101060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fb1527b233ab
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #193775: preventing NPE.