mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 450969 - NPE in AbstractDocCommentProposalComputer.getResource()
Change-Id: I2e5eaf358f958e12463f98c81863a0c330695945 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/38393 Tested-by: Hudson CI Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
18e6101a53
commit
5ccf40dd20
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ abstract class AbstractDocCommentProposalComputer implements ICompletionProposal
|
|||
|
||||
private static IResource getResource() {
|
||||
ITranslationUnit tu= getTranslationUnit();
|
||||
if (tu == null)
|
||||
return null;
|
||||
|
||||
return tu.getResource();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue