mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 488612 - Fix a NPE in DoxygenSingleAutoEditStrategy
Change-Id: I79f91dfc97da1cf4429fdedf4bee457b8e7cb1b7
This commit is contained in:
parent
e41a1c30eb
commit
f136f05560
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ public class DoxygenSingleAutoEditStrategy extends DoxygenMultilineAutoEditStrat
|
||||||
try {
|
try {
|
||||||
StringBuilder content = getDeclarationLines(doc, offset);
|
StringBuilder content = getDeclarationLines(doc, offset);
|
||||||
|
|
||||||
boolean contentAlreadyThere = (firstLineContainsText && content.toString().contains(commentContentBehindCursor.trim()));
|
boolean contentAlreadyThere = (firstLineContainsText && content != null && content.toString().contains(commentContentBehindCursor.trim()));
|
||||||
if (content == null || content.toString().trim().length() == 0 || contentAlreadyThere)
|
if (content == null || content.toString().trim().length() == 0 || contentAlreadyThere)
|
||||||
{
|
{
|
||||||
buf.setLength(0);
|
buf.setLength(0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue