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 186127 - NullPointerException at com.sun.tools.mjavac.code.Types$DefaultTypeVisitor.visit
Summary: NullPointerException at com.sun.tools.mjavac.code.Types$DefaultTypeVisitor.visit
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Karol Harezlak
URL: http://javafx-jira.kenai.com/browse/J...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 06:07 UTC by Torbjorn Norbye
Modified: 2010-07-07 19:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169591


Attachments
stacktrace (1.37 KB, text/plain)
2010-05-14 06:07 UTC, Torbjorn Norbye
Details
stacktrace (1.37 KB, text/plain)
2010-05-18 13:46 UTC, Alexandr Scherbatiy
Details
JavaFX project (102.66 KB, application/zip)
2010-05-18 13:56 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2010-05-14 06:07:20 UTC
Build: NetBeans IDE Dev (Build 100513-8ea48b482025)
VM: Java HotSpot(TM) Client VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
tor: Opened source files




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.mjavac.code.Types$DefaultTypeVisitor.visit(Types.java:3183)
   at com.sun.tools.mjavac.code.Types.hasSameArgs(Types.java:1894)
   at com.sun.tools.mjavac.code.Types.isSubSignature(Types.java:1863)
   at com.sun.tools.mjavac.code.Symbol$MethodSymbol.overrides(Symbol.java:1123)
   at com.sun.tools.mjavac.model.JavacElements.overrides(JavacElements.java:536)
   at org.netbeans.modules.javafx.editor.hints.MarkOverriddenTaskFactory$1.run(MarkOverriddenTaskFactory.java:118)
Comment 1 Torbjorn Norbye 2010-05-14 06:07:23 UTC
Created attachment 98977 [details]
stacktrace
Comment 2 Peter Pis 2010-05-14 07:32:14 UTC
Reassigning.
Comment 3 Alexandr Scherbatiy 2010-05-18 13:46:56 UTC
Created attachment 99136 [details]
stacktrace
Comment 4 Alexandr Scherbatiy 2010-05-18 13:56:16 UTC
Steps to reproduce:

- Open the attached JavaFX project
- Open the mathematics.multidimensional.MDParametrizedSet class
- Add new line

The exception pops up.
Comment 5 Alexandr Scherbatiy 2010-05-18 13:56:49 UTC
Created attachment 99137 [details]
JavaFX project
Comment 6 Karol Harezlak 2010-05-24 12:34:55 UTC
fixed (work around for compiler issue)

http://hg.netbeans.org/javafx/rev/8d3c9d4c8d04
Comment 7 Alexandr Scherbatiy 2010-05-26 10:29:55 UTC
netbeans-trunk-nightly-201005260001-javafx-windows.exe 

I see that the exceptions is shown in the IDE log file but not visible for users.

Should the compiler issue be also created?
Comment 8 Karol Harezlak 2010-05-27 13:30:00 UTC
In my opinion yes.
Comment 9 Alexandr Scherbatiy 2010-05-27 13:41:04 UTC
Created JIRA issue http://javafx-jira.kenai.com/browse/JFXC-4386
Comment 10 Alexandr Scherbatiy 2010-05-28 14:24:23 UTC
Jim Laskey commented on JFXC-4386:
----------------------------------

In order for us to fix this bug, we need to be able to reproduce it reliably with a simpler case.  Do you think that is possible?

[Using the stack dump, and looking at the code, it seems either the check instance is not initialized or the warning stack is empty.]
Comment 11 Karol Harezlak 2010-05-28 14:38:16 UTC
We already provided reproducible case for this issue. For somebody who is in charge of this issue should be relatively easy to find a problem since this bug appears every time you follow provided steps.
Comment 12 Karol Harezlak 2010-06-07 13:16:30 UTC
stack trace not shown in logs anymore
Comment 13 Alexandr Scherbatiy 2010-06-17 09:13:39 UTC
verified in NetBeans IDE Dev (Build 201006170001)
Comment 14 Andrei Chistiakov 2010-07-07 19:52:18 UTC
Verified with NetBeans IDE 6.9.1 Dev (Build 201007052301)