File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/main/java/com/fasterxml/jackson/core Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,9 @@ public Object getCurrentValue() {
136
136
137
137
@ Override
138
138
public void setCurrentValue (Object v ) {
139
- _writeContext .setCurrentValue (v );
139
+ if (_writeContext != null ) {
140
+ _writeContext .setCurrentValue (v );
141
+ }
140
142
}
141
143
142
144
/*
@@ -291,7 +293,6 @@ public void writeStartObject(Object forValue) throws IOException
291
293
if ((_writeContext != null ) && (forValue != null )) {
292
294
_writeContext .setCurrentValue (forValue );
293
295
}
294
- setCurrentValue (forValue );
295
296
}
296
297
297
298
/*
Original file line number Diff line number Diff line change @@ -29,9 +29,8 @@ public class JsonWriteContext extends JsonStreamContext
29
29
30
30
/*
31
31
/**********************************************************
32
- /* Simple instance reuse slots; speed up things
33
- /* a bit (10-15%) for docs with lots of small
34
- /* arrays/objects
32
+ /* Simple instance reuse slots; speed up things a bit (10-15%)
33
+ /* for docs with lots of small arrays/objects
35
34
/**********************************************************
36
35
*/
37
36
You can’t perform that action at this time.
0 commit comments