Skip to content

If no package is declared in the proto file. Will get a nil pointer error #5

@MESOLONELY

Description

@MESOLONELY

If no package is declared in the proto file.
Will get a nil pointer error on

ns := &ns{
		Package:   *file.Package, // <-- this line
		Namespace: namespace(file.Package, "\\"),
		Import:    make(map[string]string),
	}

should we throw a more verbose exception to warn the user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions