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

Summary: NullPointerException at org.netbeans.api.java.source.ElementUtilities.enclosingTypeElementImpl
Product: java Reporter: RayDeCampo
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208138
Attachments: stacktrace

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