Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Sennikovsky2007-02-28 11:28:05 +0000
committerMikhail Sennikovsky2007-02-28 11:28:05 +0000
commit01ed38e9da08320a736474652d6e4f7fff473d99 (patch)
tree5fb8bb78a1a3bc4f8141f956c7dd077a6d1f4b3b
parent835dcd2dbcc93d08bd3e7b46f64f8ac71eeb71a7 (diff)
downloadorg.eclipse.cdt-01ed38e9da08320a736474652d6e4f7fff473d99.tar.gz
org.eclipse.cdt-01ed38e9da08320a736474652d6e4f7fff473d99.tar.xz
org.eclipse.cdt-01ed38e9da08320a736474652d6e4f7fff473d99.zip
Added a check for the project description and owner existence
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/dataprovider/ProjectConverter.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/dataprovider/ProjectConverter.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/dataprovider/ProjectConverter.java
index 229aefad0a7..91d48b90e5f 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/dataprovider/ProjectConverter.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/dataprovider/ProjectConverter.java
@@ -67,6 +67,9 @@ public class ProjectConverter implements ICProjectConverter {
public boolean canConvertProject(IProject project, String oldOwnerId, ICProjectDescription oldDes) {
try {
+ if(oldOwnerId == null || oldDes == null)
+ return false;
+
IProjectDescription eDes = project.getDescription();
Set natureSet = new HashSet(Arrays.asList(eDes.getNatureIds()));
if(natureSet.contains(OLD_MAKE_NATURE_ID))

Back to the top