mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Related to Bug 286384 - don't throw NPE when a non-CDT project is moved...
This commit is contained in:
parent
82446508ce
commit
f38dda71f6
1 changed files with 4 additions and 2 deletions
|
@ -293,8 +293,10 @@ public class CProjectDescriptionManager implements ICProjectDescriptionManager {
|
|||
ICProjectDescriptionManager.GET_WRITABLE;
|
||||
CProjectDescription des = (CProjectDescription)getProjectDescription(to, flags);
|
||||
// set configuration descriptions to "writable" state
|
||||
for (ICConfigurationDescription cfgDes : des.getConfigurations()) {
|
||||
des.updateChild((CConfigurationDescription)cfgDes, true);
|
||||
if (des != null) {
|
||||
for (ICConfigurationDescription cfgDes : des.getConfigurations()) {
|
||||
des.updateChild((CConfigurationDescription)cfgDes, true);
|
||||
}
|
||||
}
|
||||
return des;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue