Browse Source

Merge pull request #8 in ~HADES/design from ~JOE.JIANG/design:REPORT-23647 to feature/10.0

* commit '0b6c239eff1fc37e786e5fa494fac13f7fbdaf24':
  REPORT-23647 sonar问题修复
research/11.0
Hades 5 years ago
parent
commit
5a78cd4b6f
  1. 2
      designer-base/src/main/java/com/fr/design/gui/syntax/ui/rsyntaxtextarea/folding/HtmlFoldParser.java

2
designer-base/src/main/java/com/fr/design/gui/syntax/ui/rsyntaxtextarea/folding/HtmlFoldParser.java

@ -172,7 +172,7 @@ public class HtmlFoldParser implements FoldParser {
// Continuing an MLC from a previous line
if (inMLC) {
// Found the end of the MLC starting on a previous line...
if (t.endsWith(MLC_END)) {
if (currentFold != null && t.endsWith(MLC_END)) {
int mlcEnd = t.getEndOffset() - 1;
currentFold.setEndOffset(mlcEnd);
Fold parentFold = currentFold.getParent();

Loading…
Cancel
Save