Skip to content

Unity/0.9.0b2. regression: can't prepare int enum #215

@Tinche

Description

@Tinche

Hi. I'm switching our project from using pregenerated serializers to PrepareType.

This is my enum:

public enum StatusType : int
	{
		OK = 0,
		Exception = 1,
                ...
	}

On 0.9.0beta2, in UnityEnumMessagePackSerializer I keep getting a NullReferenceException basically because Enum.GetValues(typeof(StatusType)) as object[] results in null.

(https://github.com/msgpack/msgpack-cli/blob/0.9.0-beta2/src/MsgPack/Serialization/EnumMessagePackSerializer%601.cs#L302)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDetected as bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions