1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 184708 - fix NPE when the project had the default project location.

This commit is contained in:
Doug Schaefer 2007-04-30 20:27:01 +00:00
parent e127f3b7d7
commit babbd94dc7

View file

@ -85,10 +85,19 @@ implements IExecutableExtension, IWizardWithMemory
* @return true if user has changed settings since project creation
*/
private boolean isChanged() {
if (savedHandler != fMainPage.h_selected
|| !fMainPage.getProjectName().equals(lastProjectName)
|| !fMainPage.getProjectLocation().equals(lastProjectLocation))
if (savedHandler != fMainPage.h_selected)
return true;
if (!fMainPage.getProjectName().equals(lastProjectName))
return true;
IPath projectLocation = fMainPage.getProjectLocation();
if (projectLocation == null) {
if (lastProjectLocation != null)
return true;
} else if (!projectLocation.equals(lastProjectLocation))
return true;
return savedHandler.isChanged();
}