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

Possible NPE in the CDocumentProvider

This commit is contained in:
Alain Magloire 2004-04-23 17:36:00 +00:00
parent 204639a516
commit 4c8e461e23
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2004-04-23 Alain Magloire
Possible NPE.
* src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
2004-04-23 Hoda Amer 2004-04-23 Hoda Amer
Fix for bug#59631 : Macros do not appear in the completion list when no prefix is provided Fix for bug#59631 : Macros do not appear in the completion list when no prefix is provided
Fix for bug#59686 : [Content Assist] Class references are not completing Fix for bug#59686 : [Content Assist] Class references are not completing

View file

@ -100,7 +100,10 @@ public class CDocumentProvider extends TextFileDocumentProvider {
} }
} else if (element instanceof ITranslationUnitEditorInput) { } else if (element instanceof ITranslationUnitEditorInput) {
ITranslationUnitEditorInput input = (ITranslationUnitEditorInput)element; ITranslationUnitEditorInput input = (ITranslationUnitEditorInput)element;
copy = new CFileElementWorkingCopy(input.getTranslationUnit()); ITranslationUnit u = input.getTranslationUnit();
if (u != null) {
copy = new CFileElementWorkingCopy(u);
}
} }
if (copy == null) { if (copy == null) {