Skip to content

Commit

Permalink
fix(engine): don't delete byte array deletion when updating var
Browse files Browse the repository at this point in the history
related to SUPPORT-21721
  • Loading branch information
tasso94 authored and psavidis committed Jun 11, 2024
1 parent d0d0066 commit ff613da
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public void delete() {
}

// clear value
clearValueFields();
clearValueFields(true);

if (!isTransient) {
// delete variable
Expand Down Expand Up @@ -280,19 +280,19 @@ public TypedValue getTypedValue(boolean deserializeValue) {

public void setValue(TypedValue value) {
// clear value fields
clearValueFields();
clearValueFields(false);

typedValueField.setValue(value);
}

public void clearValueFields() {
public void clearValueFields(boolean deleteVariable) {
this.longValue = null;
this.doubleValue = null;
this.textValue = null;
this.textValue2 = null;
typedValueField.clear();

if(byteArrayField.getByteArrayId() != null) {
if(deleteVariable && byteArrayField.getByteArrayId() != null) {
deleteByteArrayValue();
setByteArrayValueId(null);
}
Expand Down

0 comments on commit ff613da

Please sign in to comment.