fixed a NullPointerException in client only mode
Merge pull request #9 from crate/fix-serialization-error

fixed a NullPointerException in client only mode