mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not save empty condition and log message in breakpoints
This commit is contained in:
@@ -597,7 +597,12 @@ public abstract class Breakpoint<P extends JavaBreakpointProperties> implements
|
||||
}
|
||||
|
||||
protected void setLogMessage(TextWithImports logMessage) {
|
||||
myXBreakpoint.setLogExpression(logMessage.getText());
|
||||
if (!logMessage.getText().isEmpty()) {
|
||||
myXBreakpoint.setLogExpression(logMessage.getText());
|
||||
}
|
||||
else {
|
||||
myXBreakpoint.setLogExpression(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean isConditionEnabled() {
|
||||
|
||||
+1
-3
@@ -129,9 +129,7 @@ public class FilteredRequestorImpl implements JDOMExternalizable, FilteredReques
|
||||
breakpoint.setCountFilterEnabled(COUNT_FILTER_ENABLED);
|
||||
breakpoint.setCountFilter(COUNT_FILTER);
|
||||
|
||||
if (CONDITION_ENABLED) {
|
||||
breakpoint.setCondition(myCondition != null ? myCondition.getText() : null);
|
||||
}
|
||||
breakpoint.setCondition(CONDITION_ENABLED && myCondition != null && !myCondition.getText().isEmpty() ? myCondition.getText() : null);
|
||||
|
||||
breakpoint.setClassFiltersEnabled(CLASS_FILTERS_ENABLED);
|
||||
breakpoint.setClassFilters(getClassFilters());
|
||||
|
||||
Reference in New Issue
Block a user