summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis Windatt2013-06-10 14:45:46 (EDT)
committer Curtis Windatt2013-06-10 14:45:46 (EDT)
commit45b861c951efce8537ea1042bf86fadba9cbecef (patch)
treeac640cea16b30a2652f8f8ac0673e052eb0926d5
parent4c1c40c39bf4ef7f40947f109891be17ba006ffc (diff)
downloadeclipse.pde.ui-45b861c951efce8537ea1042bf86fadba9cbecef.zip
eclipse.pde.ui-45b861c951efce8537ea1042bf86fadba9cbecef.tar.gz
eclipse.pde.ui-45b861c951efce8537ea1042bf86fadba9cbecef.tar.bz2
Bug 409493 - [samples] NPE in SampleStandbyContent
-rw-r--r--ui/org.eclipse.pde.ui/src_samples/org/eclipse/pde/internal/ui/samples/SampleStandbyContent.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/org.eclipse.pde.ui/src_samples/org/eclipse/pde/internal/ui/samples/SampleStandbyContent.java b/ui/org.eclipse.pde.ui/src_samples/org/eclipse/pde/internal/ui/samples/SampleStandbyContent.java
index f4449f9..582fa80 100644
--- a/ui/org.eclipse.pde.ui/src_samples/org/eclipse/pde/internal/ui/samples/SampleStandbyContent.java
+++ b/ui/org.eclipse.pde.ui/src_samples/org/eclipse/pde/internal/ui/samples/SampleStandbyContent.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 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
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.pde.internal.ui.samples;
-import org.eclipse.core.resources.IResource;
-
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
@@ -187,7 +185,7 @@ public class SampleStandbyContent implements IStandbyContentPart {
if (path == null)
continue;
IResource res = project.findMember(path);
- if (res.exists())
+ if (res != null && res.exists())
return res;
}
}
@@ -258,8 +256,8 @@ public class SampleStandbyContent implements IStandbyContentPart {
descText.setText("", false, false); //$NON-NLS-1$
}
form.reflow(true);
- }
-
+ }
+
/*
* (non-Javadoc)
*