Bug 5752

Summary: [JUNO] error when first running "Reconfigure Project" from the Quick Access
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Ada Solcan <ada-mihaela.solcan>
Component: eclipse-pluginAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact: Andra Necula <andrax.g.necula>
Severity: normal    
Priority: Low CC: andrax.g.necula, cristiana.voicu, ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 1.6   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
Screenshot with the error message none

Description Ada Solcan 2014-01-22 12:28:30 UTC
Created attachment 1743 [details]
Screenshot with the error message

Host: Ubuntu 13.10 64-bit
poky: e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371
eclipse-poky-juno: 26bfc407781aa185f244a47ba63120343cee4a37

STEPS TO REPRODUCE:
1. Install Eclipse using the Headless Build
2. Set the Yocto ADT's toolchain root location, sysroot location and kernel
3. Create a new C/C++ Project (an example could be a Hello World C++ Autotools Project)
   3.1 Select File->New->C++ Project
   3.2 Expand Yocto ADT Project and select Hello World C++ Autotools Project
   3.3 Select a name for the project and an author and click Finish
4. In the Quick Access (CTRL+3) text box type "Reconfigure Project - Run configuration scripts for project" and click the corresponding cell in the drop-down menu that appears

EXPECTED RESULT:
The project is reconfigured without any error.

ACTUAL RESULT:
An error message pop-up appears (as seen in the attached screen shot). 
If step 4 is repeated the error does not appear and the project is reconfigured.

Fragment from the log file:
!ENTRY org.eclipse.core.jobs 4 2 2014-01-22 14:05:22.556
!MESSAGE An internal error occurred during: "Reconfigure Action".
!STACK 0
java.lang.NullPointerException
        at org.eclipse.cdt.internal.autotools.core.AutotoolsNewMakeGenerator.initialize(AutotoolsNewMakeGenerator.java:158)
        at org.eclipse.cdt.internal.autotools.ui.actions.ReconfigureAction$1$1.run(ReconfigureAction.java:55)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
        at org.eclipse.cdt.internal.autotools.ui.actions.ReconfigureAction$1.run(ReconfigureAction.java:48)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


That bug does not reproduce in Kepler
Comment 1 Cristiana Voicu 2014-04-03 14:03:30 UTC
This is a Juno bug, so I will close it. The Juno support will continue mainly for 1.4.*.
Comment 2 Andra Necula 2014-08-28 10:44:26 UTC
Verified with 
eclipse-poky-juno 26bfc407781aa185f244a47ba63120343cee4a37
poky 52b788c6df9201764130ab744bf67b770b24b896
Ubuntu 14.04
x86_64
Cheers! Andra N.