mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
java: Fixed a bug that NullPointerException occurs within DefaultTemplate.java
This commit is contained in:
parent
dfe29a0329
commit
337cc9fa78
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ public class DefaultTemplate implements Template {
|
|||
public void pack(Packer pk, Object target) throws IOException {
|
||||
if(messagePackable) {
|
||||
if(target == null) {
|
||||
throw new MessageTypeException("target is null: " + target.getClass().getName());
|
||||
throw new MessageTypeException("target is null.");
|
||||
}
|
||||
((MessagePackable)target).messagePack(pk);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue