From 43e479558ee13cbf5f7ea0907cdde1865c7a8ba7 Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Thu, 23 Feb 2012 16:19:19 +0100 Subject: [PATCH] fix InputException on clicking Edit by Field... on an empty CVS root (EA-33961) --- .../config/ui/CvsRootAsStringConfigurationPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java index 3eb7cf414bf6..08aeca23a90a 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/config/ui/CvsRootAsStringConfigurationPanel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ import java.util.Collection; * author: lesya */ public class CvsRootAsStringConfigurationPanel { + private JTextField myCvsRoot; private JButton myEditFieldByFieldButton; private final Ref myIsUpdating; @@ -54,7 +55,7 @@ public class CvsRootAsStringConfigurationPanel { public void actionPerformed(ActionEvent e) { final CvsRootConfiguration cvsRootConfiguration = CvsApplicationLevelConfiguration.createNewConfiguration(CvsApplicationLevelConfiguration.getInstance()); - saveTo(cvsRootConfiguration); + cvsRootConfiguration.CVS_ROOT = FormUtils.getFieldValue(myCvsRoot, false); final EditCvsConfigurationFieldByFieldDialog dialog = new EditCvsConfigurationFieldByFieldDialog(myCvsRoot.getText()); dialog.show(); if (dialog.isOK()) {