Skip to content

text/template: AddParseTree() panicing #7032

@jpoehls

Description

@jpoehls
panic: runtime error: invalid memory address or nil pointer dereference

What steps will reproduce the problem?

1. Call AddParseTree() prior to calling Parse() causes a panic.
2. Example: http://play.golang.org/p/IGTtIdGfqa (also attached)

Which operating system are you using?

OS X 10.9.1

Which version are you using?  (run 'go version')

go1.2 darwin/amd64

Link to discussion on mailing list:
https://groups.google.com/forum/#!topic/golang-nuts/C8jPINo8sHc

Attachments:

  1. repro.go (1005 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions