mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 21:15:23 +02:00
Bug 431026 - NPE while checking Assembler resources (*.S - files)
Change-Id: I1a3454ff2592137345c3a40b4acf7b2ec3049724 Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com> Reviewed-on: https://git.eclipse.org/r/28724
This commit is contained in:
parent
db43e03878
commit
a287a76c34
1 changed files with 2 additions and 0 deletions
|
@ -869,6 +869,8 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
|
||||||
}
|
}
|
||||||
ASTTranslationUnit ast = (ASTTranslationUnit) ((AbstractLanguage) language).getASTTranslationUnit(
|
ASTTranslationUnit ast = (ASTTranslationUnit) ((AbstractLanguage) language).getASTTranslationUnit(
|
||||||
fileContent, scanInfo, crf, index, options, log);
|
fileContent, scanInfo, crf, index, options, log);
|
||||||
|
if (ast == null)
|
||||||
|
return null;
|
||||||
ast.setOriginatingTranslationUnit(this);
|
ast.setOriginatingTranslationUnit(this);
|
||||||
ast.setBasedOnIncompleteIndex(incompleteIndex);
|
ast.setBasedOnIncompleteIndex(incompleteIndex);
|
||||||
return ast;
|
return ast;
|
||||||
|
|
Loading…
Add table
Reference in a new issue