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 257242 - NullPointerException at org.netbeans.modules.refactoring.java.plugins.InnerToOuterRefactoringPlugin.fastCheckParameters
Summary: NullPointerException at org.netbeans.modules.refactoring.java.plugins.InnerTo...
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-21 12:08 UTC by ferrybig
Modified: 2016-08-12 20:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 221787


Attachments
stacktrace (9.04 KB, text/plain)
2015-12-21 12:08 UTC, ferrybig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ferrybig 2015-12-21 12:08:21 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Windows 7

User Comments:
ferrybig: I was trying to pull up an inner class inside a annoynymus class




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.plugins.InnerToOuterRefactoringPlugin.fastCheckParameters(InnerToOuterRefactoringPlugin.java:197)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:408)
   at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin$WorkingTask.run(JavaRefactoringPlugin.java:378)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:486)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
Comment 1 ferrybig 2015-12-21 12:08:23 UTC
Created attachment 157876 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-12 20:19:21 UTC
Could you please paste a sample of the refactored structure ? I've tried:

    public void test() {
        SwingUtilities.invokeLater(new Runnable() {
            class Nested {
                
            }
            
            @Override
            public void run()
            {
                class LocalInAnon {
                    
                }
            }
            
        });
    }

or

public class Foo
{
    Runnable r = new Runnable() {
            class Nested {
                
            }
            
            @Override
            public void run()
            {
                class LocalInAnon {
                    
                }
            }
            
        };

but was not successful in reproducing the defect.