mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Bug 409896 - NPE in StubUtility.getFileContent when the template is
empty
This commit is contained in:
parent
3336cd19e6
commit
2358322ab5
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ public class StubUtility {
|
|||
String[] fullLine= { CodeTemplateContextType.FILE_COMMENT };
|
||||
|
||||
String text = evaluateTemplate(context, template, fullLine);
|
||||
if (!text.endsWith(lineDelimiter))
|
||||
if (text != null && !text.endsWith(lineDelimiter))
|
||||
text += lineDelimiter;
|
||||
return text;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue