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:
parent
e127f3b7d7
commit
babbd94dc7
1 changed files with 12 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue