Commit 6d6158a7 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

Check project nature

parent 34f90bf1
......@@ -132,7 +132,12 @@ public class RepositoryManager {
public Repository getRepository(final String repositoryName, final boolean migrationEnabled) {
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
final IProject project = workspace.getRoot().getProject(repositoryName);
if (project == null || !project.exists()) {
try {
if (project == null || !project.exists() || !project.hasNature(BonitaProjectNature.NATURE_ID)) {
return null;
}
} catch (final CoreException e) {
BonitaStudioLog.error(e);
return null;
}
return createRepository(repositoryName, migrationEnabled);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment