update.put(RuleField.DEFAULT_SUB_CHARACTERISTIC.field(), subCharacteristic.getKey());
}
}
if (rule.getSubCharacteristicId() != null) {
if (rule.getSubCharacteristicId() == -1) {
<BUG>update.put(RuleField.CHARACTERISTIC.field(), "");

update.put(RuleField.SUB_CHARACTERISTIC.field(), "");
</BUG>
} else {

update.put(RuleField.DEFAULT_SUB_CHARACTERISTIC.field(), subCharacteristic.getKey());
}
}
if (rule.getSubCharacteristicId() != null) {
if (rule.getSubCharacteristicId() == -1) {
update.put(RuleField.CHARACTERISTIC.field(), DebtCharacteristic.NONE);
update.put(RuleField.SUB_CHARACTERISTIC.field(), DebtCharacteristic.NONE);
} else {
