Export to GitHub

google-checkout-java-sdk - issue #9

NBModule: Null pointer exception when attempting to integrate when no project is selected as the Main project


Posted on Sep 21, 2007 by Massive Horse

Steps to Reproduce 1. Run the NBModule 2. Make sure you have at least two projects opened with one project selected as the main project. 3. Delete the main project (the one that has bold text in the Files window) Note: none of the remaining projects should currently be bold (i.e. none should be set as the main project) 4. Go to Tools -> Checkout SDK Integration Wizard 5. Notice that you will get a pop-up window indicating a null pointer exception

The expected behaviour is for a pop-up window to indicate to the user that he/she needs to set a project as a main project to run the Checkout SDK Integration wizard.

Attachments

Comment #1

Posted on Sep 28, 2007 by Massive Horse

(No comment was entered for this change.)

Comment #2

Posted on Oct 1, 2007 by Massive Horse

In the IntegrationWizardAction.java file, there was a validation check to see if there was any open projects before the Integration Wizard was run; however, the check didn't take into account if there were open projects but no main project, which caused a null pointer exception when trying to set properties of the main project. The solution to this issue was to add error checking to verify that if there is no main project, a pop-up dialog should inform the user to select one of the open projects as the main project.

Status: Fixed

Labels:
Type-Defect Priority-Medium