File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/common/model/src/main/java/com/alipay/sofa/registry/common/model Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616 */
1717package com .alipay .sofa .registry .common .model ;
1818
19- import com .fasterxml .jackson .annotation .JsonIgnore ;
20-
2119import java .io .ByteArrayInputStream ;
2220import java .io .ByteArrayOutputStream ;
2321import java .io .IOException ;
2422import java .io .ObjectInputStream ;
2523import java .io .ObjectOutputStream ;
2624import java .io .Serializable ;
2725
26+ import com .fasterxml .jackson .annotation .JsonIgnore ;
27+
2828/**
2929 *
3030 * @author zhuoyu.sjw
@@ -93,7 +93,7 @@ public Object getObject() {
9393 * @throws ClassNotFoundException the class not found exception
9494 */
9595 public Object extract () throws IOException , ClassNotFoundException {
96- if (isInBytes ()) {
96+ if (object == null && isInBytes ()) {
9797 ByteArrayInputStream bis = new ByteArrayInputStream (bytes );
9898 if (serialization != SERIALIZED_BY_JAVA ) {
9999 throw new IOException ("Unsupported serialization type: " + serialization );
You can’t perform that action at this time.
0 commit comments