Skip to content

Instantly share code, notes, and snippets.

@kzk
Created November 7, 2010 18:05
Show Gist options
  • Save kzk/666287 to your computer and use it in GitHub Desktop.
Save kzk/666287 to your computer and use it in GitHub Desktop.
import org.msgpack.MessagePack;
import org.msgpack.annotation.MessagePackMessage;
public class Main {
@MessagePackMessage
public static class MyClass {
public String str;
}
public static void main(String[] args) {
MyClass src = new MyClass();
src.str = null;
// msgpack-java 4.1-devel throws NULL-pointer exception here.
byte[] raw = MessagePack.pack(src);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment