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:
parent
204639a516
commit
4c8e461e23
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue