Skip to content

text/template: panic during "Templates" execution on new template #3872

@gopherbot

Description

@gopherbot

by sokolcjrjk:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Execute template.New("Name").Templates()

http://play.golang.org/p/myKyI7LmZF

What is the expected output?
None

What do you see instead?
panic: runtime error: invalid memory address or nil pointer dereference

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
x86_64 GNU/Linux

Which version are you using?  (run 'go version')
go version go1.0.2

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions