Author: vrubezhny
Date: 2012-06-22 05:59:16 -0400 (Fri, 22 Jun 2012)
New Revision: 42171
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java
Log:
additional null pointer check
Modified:
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java 2012-06-22
08:27:17 UTC (rev 42170)
+++
trunk/tests/plugins/org.jboss.tools.tests/src/org/jboss/tools/test/util/TestProjectProvider.java 2012-06-22
09:59:16 UTC (rev 42171)
@@ -53,7 +53,7 @@
public TestProjectProvider(String bundleName, String projectPath, String name, boolean
makeCopy) throws CoreException {
try {
project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
- if(!project.isAccessible()) {
+ if(project != null && !project.isAccessible()) {
if( null == projectPath ) {
project = ResourcesUtils.importProject(bundleName, "projects" +
Path.SEPARATOR + name, null);
} else {
Show replies by date