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 268382 - NullPointerException at org.netbeans.modules.web.jsf.refactoring.JSFWhereUsedPlugin.prepare
Summary: NullPointerException at org.netbeans.modules.web.jsf.refactoring.JSFWhereUsed...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 15:43 UTC by achirizzi
Modified: 2016-10-06 15:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220502


Attachments
stacktrace (867 bytes, text/plain)
2016-10-06 15:43 UTC, achirizzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description achirizzi 2016-10-06 15:43:40 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Mac OS X

User Comments:
GUEST: fin usages un class

achirizzi: Situation: there is an open project in the IDE, made of multiple subproject.
There is a class which the NB says it is duplicated, but it is really not! So I did a "find usages" of the class or one of the functions in the class, and it complained about the exception, also showing a  strange dialog saying "cannot refactor the class" (or something similar).




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.jsf.refactoring.JSFWhereUsedPlugin.prepare(JSFWhereUsedPlugin.java:122)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:442)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:426)
   at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:237)
   at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare$2.run(ParametersPanel.java:1055)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
Comment 1 achirizzi 2016-10-06 15:43:42 UTC
Created attachment 162373 [details]
stacktrace