Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException when string contains closing HTML tag without a matching opening one #440

Closed
mpaluchowski opened this issue Aug 11, 2017 · 1 comment
Labels
Milestone

Comments

@mpaluchowski
Copy link
Contributor

Scanning the following code will cause a NullPointerException:

component {
  function render() {
    writeOutput("</div>");
  }
}

There is no exception when:

  • there's a preceding writeOutput("<div>"); line
  • the string contains anything else than the closing HTML tag, ie. writeOutput("div") (the opening tag, instead of the closing one) or writeOutput("foo").
@mpaluchowski mpaluchowski added this to the 1.2.3 milestone Aug 11, 2017
@TheRealAgentK TheRealAgentK modified the milestones: 1.2.3, 1.3.0 Aug 11, 2017
ryaneberly added a commit that referenced this issue Aug 13, 2017
@ryaneberly
Copy link
Contributor

Interesting. That happens as part of the 'detection' process whether it is pure cfscript or cfml. The message is now suppressed unless you have vebose enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants