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 242557 - NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl
Summary: NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosi...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 19:51 UTC by RayDeCampo
Modified: 2014-10-18 05:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208138


Attachments
stacktrace (9.90 KB, text/plain)
2014-03-04 19:51 UTC, RayDeCampo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RayDeCampo 2014-03-04 19:51:53 UTC
Build: NetBeans IDE 8.0 RC1 (Build 201402242200)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 8

User Comments:
RayDeCampo: Tried to inline a method.  The first time, it appeared to work but nothing happened.  The second time, I got this error.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl(ElementUtilities.java:150)
   at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElement(ElementUtilities.java:145)
   at org.netbeans.modules.refactoring.java.plugins.InlineRefactoringPlugin$1.run(InlineRefactoringPlugin.java:155)
   at org.netbeans.modules.refactoring.java.plugins.InlineRefactoringPlugin$1.run(InlineRefactoringPlugin.java:144)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:493)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593)
Comment 1 RayDeCampo 2014-03-04 19:51:55 UTC
Created attachment 145763 [details]
stacktrace
Comment 2 Ralph Ruijs 2014-10-16 13:01:05 UTC
changeset:   895c5b01edbe
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Thu Oct 16 13:56:49 2014 +0200
summary:     #242557 - Check if the element is still available
Comment 3 Quality Engineering 2014-10-18 05:13:24 UTC
Integrated into 'main-silver', will be available in build *201410180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/895c5b01edbe
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #242557 - Check if the element is still available