1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

FIXED bug # 82572

This commit is contained in:
David Inglis 2005-01-11 18:45:57 +00:00
parent 2758147c93
commit dd9f4af843
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-01-11 David Inglis
Fixed NPE bug #82572
* src/org/eclipse/cdt/internal/core/CDescriptor.java
2005-01-07 Alain Magloire
Fix PR 82202
* model/org/eclipse/cdt/internal/core/model/CElement.java

View file

@ -560,7 +560,7 @@ public class CDescriptor implements ICDescriptor {
NodeList nodes = doc.getDocumentElement().getElementsByTagName(PROJECT_DATA_ITEM);
for (int i = 0; i < nodes.getLength(); ++i) {
Element element = (Element)nodes.item(i);
if (element.getAttribute(PROJECT_DATA_ID).equals(id))
if (element != null && element.getAttribute(PROJECT_DATA_ID).equals(id))
return element;
}