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 267620 - NullPointerException at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider.getProjectInformation
Summary: NullPointerException at org.netbeans.modules.projectapi.nb.NbProjectInformati...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-17 14:00 UTC by petrk
Modified: 2016-09-02 01:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 225390


Attachments
stacktrace (2.24 KB, text/plain)
2016-08-17 14:00 UTC, petrk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description petrk 2016-08-17 14:00:39 UTC
Build: NetBeans IDE Dev (Build 20160816-3e3cd5fd1a74)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.72-b15, Java(TM) SE Runtime Environment, 1.8.0_72-b15
OS: Linux

User Comments:
petrk: Tried to attach gdb debugger while debugging java application

GUEST: ?




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider.getProjectInformation(NbProjectInformationProvider.java:75)
   at org.netbeans.api.project.ProjectUtils.getInformation(ProjectUtils.java:96)
   at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessorImpl.getTabName(ProjectActionSupport.java:362)
   at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessorImpl.<init>(ProjectActionSupport.java:342)
   at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport.fireActionPerformed(ProjectActionSupport.java:247)
   at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport.fireActionPerformed(ProjectActionSupport.java:243)
Comment 1 petrk 2016-08-17 14:00:40 UTC
Created attachment 161699 [details]
stacktrace
Comment 2 Alexander Simon 2016-08-17 15:20:02 UTC
it looks like regression after fixing the bug #262196
Comment 3 Maria Tishkova 2016-08-31 17:01:46 UTC
as Alexander said it is a regression.
ATTACH action is now considered as Debug action but in case "no project" is selected when attached to the process pae,getProject() will return null, as DebugTarget put in the Lookup instead of Project.
As DebugTarget is not accessible in ProjectActionSupport new interface has to be introduce, but I have decided to just check for null at this time.


changeset:   300288:59d03b1b45da
tag:         tip
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Wed Aug 31 19:58:08 2016 +0300
summary:     fixed bz#267620 - NullPointerException at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider.getProjectInformation
Comment 4 Quality Engineering 2016-09-01 01:53:12 UTC
Integrated into 'main-silver', will be available in build *201609010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/59d03b1b45da
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#267620 - NullPointerException at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider.getProjectInformation
Comment 5 Quality Engineering 2016-09-02 01:59:01 UTC
Integrated into 'main-silver', will be available in build *201609020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cdc38ca8ec11
User: Maria Dalmatova <mromashova@netbeans.org>
Log: added fix to bz#267620 - NullPointerException at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider.getProjectInformation