mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug #182247: NPE in property pages
This commit is contained in:
parent
45581a740c
commit
6af8afe7af
1 changed files with 4 additions and 1 deletions
|
@ -561,8 +561,11 @@ implements
|
|||
if (pages.size() > 1) return; // do not duplicate
|
||||
if (CDTPrefUtil.getBool(CDTPrefUtil.KEY_NOSAVE)) return;
|
||||
|
||||
if (internalElement == null && !checkElement())
|
||||
return; // not initialized. Do not process
|
||||
IProject prj = getProject();
|
||||
if (prj == null) return; // preferences. Do not process.
|
||||
if (prj == null)
|
||||
return; // preferences. Do not process.
|
||||
QualifiedName WIDTH = new QualifiedName(prj.getName(),".property.page.width"); //$NON-NLS-1$
|
||||
QualifiedName HEIGHT = new QualifiedName(prj.getName(),".property.page.height"); //$NON-NLS-1$
|
||||
QualifiedName XKEY = new QualifiedName(prj.getName(),".property.page.x"); //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue