1
0
Fork 0
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:
Oleg Krasilnikov 2007-04-13 12:22:19 +00:00
parent 45581a740c
commit 6af8afe7af

View file

@ -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$