mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java-xbreakpoints: do not save empty conditions
This commit is contained in:
@@ -43,7 +43,7 @@ public class JavaDebuggerEditorsProvider extends XDebuggerEditorsProviderBase im
|
||||
@Override
|
||||
public void saveTo(@NotNull XBreakpoint<?> breakpoint) {
|
||||
TextWithImports text = myComboBox.getText();
|
||||
final String condition = StringUtil.nullize(text.toExternalForm(), true);
|
||||
final String condition = !text.getText().isEmpty() ? text.toExternalForm() : null;
|
||||
breakpoint.setCondition(condition);
|
||||
if (condition != null) {
|
||||
myComboBox.addRecent(text);
|
||||
|
||||
Reference in New Issue
Block a user