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 260880 - NullPointerException at org.netbeans.modules.refactoring.java.ui.InlineRefactoringUI$1.create
Summary: NullPointerException at org.netbeans.modules.refactoring.java.ui.InlineRefact...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-10 11:00 UTC by Maksim Khramov
Modified: 2016-08-11 01:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216363


Attachments
stacktrace (5.21 KB, text/plain)
2016-05-10 11:00 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2016-05-10 11:00:45 UTC
Build: NetBeans IDE Dev (Build 201605100002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.77-b03, Java(TM) SE Runtime Environment, 1.8.0_77-b03
OS: Windows 7

User Comments:
GUEST: <Please provide a description of the problem or the steps to reproduce>

Wondering how to replace numeric literal with constant field

mkhramov: Invoke Inline refacoring




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.refactoring.java.ui.InlineRefactoringUI$1.create(InlineRefactoringUI.java:147)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$1.createRefactoringUI(ContextAnalyzer.java:117)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$TextComponentTask.run(ContextAnalyzer.java:378)
   at org.netbeans.modules.refactoring.java.ui.ContextAnalyzer$TextComponentTask.run(ContextAnalyzer.java:303)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:486)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Comment 1 Maksim Khramov 2016-05-10 11:00:47 UTC
Created attachment 159687 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-06 21:27:58 UTC
Fixed by jet-main#88e5205dddf7
88e5205dddf7
Comment 3 Quality Engineering 2016-08-11 01:56:11 UTC
Integrated into 'main-silver', will be available in build *201608110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/88e5205dddf7
User: Svata Dedic <sdedic@netbeans.org>
Log: #258227, #260880: reviewed getElement, avoided NPEs.