Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2013-09-04 16:59:03 +0000
committerDani Megert2013-09-04 16:59:03 +0000
commit1cb7f46879905a0418ac0a1732f6da0f230d4857 (patch)
tree183e9a2e95d5e4d010ecbec0ba4adcfba01cacb8 /org.eclipse.ui.intro.universal
parent6afe0c8c3b1a0f869bf66053caea8e0bbb5cacee (diff)
downloadeclipse.platform.ua-1cb7f46879905a0418ac0a1732f6da0f230d4857.tar.gz
eclipse.platform.ua-1cb7f46879905a0418ac0a1732f6da0f230d4857.tar.xz
eclipse.platform.ua-1cb7f46879905a0418ac0a1732f6da0f230d4857.zip
Fixed potential null pointer access
Diffstat (limited to 'org.eclipse.ui.intro.universal')
-rw-r--r--org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/PageData.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/PageData.java b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/PageData.java
index 5c2e6cb69..ccc8e76b0 100644
--- a/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/PageData.java
+++ b/org.eclipse.ui.intro.universal/src/org/eclipse/ui/internal/intro/universal/PageData.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,12 +14,13 @@ import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+
public class PageData {
public static final String P_TOP_LEFT = "page-content/top-left"; //$NON-NLS-1$
public static final String P_TOP_RIGHT = "page-content/top-right"; //$NON-NLS-1$
@@ -129,7 +130,8 @@ public class PageData {
groups.add(gd);
groups.add(new GroupData(P_BOTTOM_RIGHT, true));
}
- gd.addImplicitExtension(extensionId, name);
+ if (gd != null)
+ gd.addImplicitExtension(extensionId, name);
}
private GroupData findDefaultGroup() {

Back to the top