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.
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)
Created attachment 161699 [details] stacktrace
it looks like regression after fixing the bug #262196
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
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
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