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 250683 - NullPointerException at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval
Summary: NullPointerException at org.netbeans.modules.refactoring.java.ui.tree.Element...
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: 2015-02-25 10:46 UTC by Leperous
Modified: 2015-03-13 03:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 736


Attachments
stacktrace (9.21 KB, text/plain)
2015-02-25 10:46 UTC, Leperous
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leperous 2015-02-25 10:46:11 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Windows 7

User Comments:
GUEST: Try use "Move inner to outer level" refactor tool on public static class

GUEST: refactoring an enum -- changing the parameters to its abstract method

Leperous: Tried to pull static class out of interface

GUEST: Refactoring an inner static class into its own file.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:152)
   at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory.put(ElementGripFactory.java:112)
   at org.netbeans.modules.refactoring.java.api.JavaRefactoringUtils.cacheTreePathInfo(JavaRefactoringUtils.java:378)
   at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.rewrite(RefactoringVisitor.java:153)
   at org.netbeans.modules.refactoring.java.plugins.InnerToOuterTransformer.visitMemberSelect(InnerToOuterTransformer.java:443)
   at org.netbeans.modules.refactoring.java.plugins.InnerToOuterTransformer.visitMemberSelect(InnerToOuterTransformer.java:73)
Comment 1 Leperous 2015-02-25 10:46:13 UTC
Created attachment 152201 [details]
stacktrace
Comment 2 Ralph Ruijs 2015-03-10 00:18:00 UTC
changeset   : c702f39b5c34
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Tue Mar 10 01:14:21 CET 2015
summary     : #250683 - NullPointerException at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval
Comment 3 Quality Engineering 2015-03-13 03:14:00 UTC
Integrated into 'main-silver', will be available in build *201503130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c702f39b5c34
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #250683 - NullPointerException at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval