Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tinche opened this issue Feb 17, 2017 · 1 comment
Open

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

Tinche opened this issue Feb 17, 2017 · 1 comment
Labels
bug Detected as bug

Comments

@Tinche
Copy link

Tinche commented Feb 17, 2017

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)

@yfakariya yfakariya added the bug Detected as bug label Feb 19, 2017
@yfakariya
Copy link
Member

Thank you for reporting this! I will investigate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Detected as bug
Projects
None yet
Development

No branches or pull requests

2 participants