Skip to content

Panic due to commented backslash #913

Open
@tiymat

Description

@tiymat

Describe the bug:
When a line is commented with #, if the line ends with a \ it will cause a nil pointer dereference.

Expected behaviour:
Nothing in the comment should affect execution.

Screenshots:

Image

Platform (please complete the following information):

  • OS, output from uname -a if supported: 6.12.10-arch1-1
  • Terminal Emulator: kitty 0.39.0
  • Murex version, output from version --no-app-name: 6.4.2063 (develop)

Additional context
tree.statement is nil in parse_comment.go in its invocation here

		case '\\':
			next := tree.nextChar()
			if next == '\r' || next == '\n' {
				tree.statement.ignoreCrLf = true
			}

		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected behaviordeployed to `develop`Feature built. Currently BETA testing in the `develop` branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions