mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
Merge branch 'master' of https://github.com/watabiki/msgpack
This commit is contained in:
@@ -30,7 +30,11 @@ public class BigDecimalTemplate implements Template {
|
||||
@Override
|
||||
public void pack(Packer pk, Object target) throws IOException {
|
||||
BigDecimal temp = (BigDecimal) target;
|
||||
pk.packString(temp.toString());
|
||||
try {
|
||||
pk.packString(temp.toString());
|
||||
} catch (NullPointerException e) {
|
||||
throw new MessageTypeException("target is null.", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user