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 163433 - [67cat] NullPointerException at com.sun.source.util.TreePath.<init>
Summary: [67cat] NullPointerException at com.sun.source.util.TreePath.<init>
Status: VERIFIED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL: http://statistics.netbeans.org/except...
Keywords:
: 163263 167494 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-22 21:10 UTC by misterm
Modified: 2010-10-18 13:35 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 149656


Attachments
stacktrace (1.56 KB, text/plain)
2009-04-22 21:11 UTC, misterm
Details
stacktrace (1.56 KB, text/plain)
2009-04-22 21:22 UTC, misterm
Details
stacktrace (1.56 KB, text/plain)
2009-04-22 21:23 UTC, misterm
Details
stacktrace (1.56 KB, text/plain)
2009-07-17 00:09 UTC, Jesse Glick
Details
stacktrace (3.04 KB, text/plain)
2009-09-24 16:24 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2009-04-22 21:10:52 UTC
Build: NetBeans IDE Dev (Build 090422)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments:
misterm: Just typing in a class file with a private static abstract class



Stacktrace: 
java.lang.NullPointerException
        at com.sun.source.util.TreePath.<init>(TreePath.java:89)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:104)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:101)
        at com.sun.source.util.TreeScanner.visitNewClass(TreeScanner.java:272)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:49)
Comment 1 misterm 2009-04-22 21:11:00 UTC
Created attachment 80726 [details]
stacktrace
Comment 2 misterm 2009-04-22 21:21:56 UTC
Build: NetBeans IDE Dev (Build 090422)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.source.util.TreePath.<init>(TreePath.java:89)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:104)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:101)
        at com.sun.source.util.TreeScanner.visitNewClass(TreeScanner.java:272)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:49)
Comment 3 misterm 2009-04-22 21:22:06 UTC
Created attachment 80727 [details]
stacktrace
Comment 4 misterm 2009-04-22 21:22:57 UTC
Build: NetBeans IDE Dev (Build 090422)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at com.sun.source.util.TreePath.<init>(TreePath.java:89)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:104)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:101)
        at com.sun.source.util.TreeScanner.visitNewClass(TreeScanner.java:272)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:49)
Comment 5 misterm 2009-04-22 21:23:06 UTC
Created attachment 80728 [details]
stacktrace
Comment 6 Jesse Glick 2009-04-23 14:44:52 UTC
You have to actually assign to someone; there is no default owner for contrib.
Comment 7 Exceptions Reporter 2009-05-15 12:03:02 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=149656
Comment 8 Jesse Glick 2009-07-17 00:09:16 UTC
Build: NetBeans IDE Dev (Build 090716)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-13-generic, i386

User Comments: 
Editing Java code.

Stacktrace: 
java.lang.NullPointerException<br/>
        at com.sun.source.util.TreePath.<init>(TreePath.java:89)<br/>
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:104)<br/>
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:101)<br/>
        at com.sun.source.util.TreeScanner.visitNewClass(TreeScanner.java:272)<br/>
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366)<br/>
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:49)<br/>
Comment 9 Jesse Glick 2009-07-17 00:09:26 UTC
Created attachment 84868 [details]
stacktrace
Comment 10 Exceptions Reporter 2009-07-17 00:09:46 UTC
This issue already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=149656
Comment 11 Jesse Glick 2009-07-17 00:19:26 UTC
When thrown, it is thrown repeatedly.
Comment 12 Exceptions Reporter 2009-07-28 12:58:01 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=149656
Comment 13 Exceptions Reporter 2009-07-30 12:44:09 UTC
This issue already has 22 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=149656
Comment 14 mps77 2009-07-30 12:51:54 UTC
my hint: occured when non static member referenced from static context.
Comment 15 mklaehn 2009-08-11 15:31:40 UTC
my two cents:
i had a static method in which a non-static field was accessed. as soon as the non-static field was made static it
exceptions ceased to be raised.
Comment 16 Jesse Glick 2009-09-24 16:23:59 UTC
Build: NetBeans IDE Dev (Build 090923)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux, 2.6.28-15-generic, i386

User Comments: 
Changing a static method to a nonstatic call across modules.

Stacktrace: 
java.lang.NullPointerException
        at com.sun.source.util.TreePath.<init>(TreePath.java:89)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:104)
        at org.netbeans.modules.javahints.MakeStatic$1.scan(MakeStatic.java:101)
        at com.sun.source.util.TreeScanner.visitNewClass(TreeScanner.java:272)
        at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1366)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:67)
Comment 17 Jesse Glick 2009-09-24 16:24:13 UTC
Created attachment 88301 [details]
stacktrace
Comment 18 Jan Lahoda 2009-11-21 15:41:18 UTC
*** Bug 167494 has been marked as a duplicate of this bug. ***
Comment 19 Jan Lahoda 2009-11-21 15:43:55 UTC
Should be fixed:
http://hg.netbeans.org/main/contrib/rev/8b47536de619
Comment 20 pribyl 2009-11-27 08:07:41 UTC
Product Version: NetBeans IDE 6.8 RC1 (Build 200911252200)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Should be verified :)
Comment 21 Jan Lahoda 2010-10-18 13:35:19 UTC
*** Bug 163263 has been marked as a duplicate of this bug. ***