File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sdk/src/main/java/io/dapr/client Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -825,12 +825,12 @@ private <T> CommonProtos.StateItem.Builder buildStateRequest(State<T> state) thr
825825 if (state .getMetadata () != null ) {
826826 stateBuilder .putAllMetadata (state .getMetadata ());
827827 }
828- if (objectSerializer .getContentType () != null && !objectSerializer .getContentType ().isEmpty ()) {
829- stateBuilder .putMetadata ("contentType" , objectSerializer .getContentType ());
830- }
831828 if (bytes != null ) {
832829 stateBuilder .setValue (ByteString .copyFrom (bytes ));
833830 }
831+ if (objectSerializer .getContentType () != null && !objectSerializer .getContentType ().isEmpty ()) {
832+ stateBuilder .putMetadata ("contentType" , objectSerializer .getContentType ());
833+ }
834834 stateBuilder .setKey (state .getKey ());
835835 CommonProtos .StateOptions .Builder optionBuilder = null ;
836836 if (state .getOptions () != null ) {
You can’t perform that action at this time.
0 commit comments