mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
Added a check for the project description and owner existence
This commit is contained in:
parent
835dcd2dbc
commit
01ed38e9da
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue