Skip to content

Commit e0120f1

Browse files
OleksiiMalikovabsap
authored andcommitted
fix trailing blanks in url field (#142)
1 parent b081f5e commit e0120f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

org.abapgit.adt.ui/src/org/abapgit/adt/ui/internal/wizards/AbapGitWizardPageRepositoryAndCredentials.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ public void createControl(Composite parent) {
7979
this.r = Pattern.compile(this.ptrn);
8080

8181
this.txtURL.addModifyListener(event -> {
82-
this.cloneData.url = this.txtURL.getText();
82+
//remove trailing blanks from URL
83+
this.cloneData.url = this.txtURL.getText().trim();
8384
this.cloneData.externalRepoInfo = null;
84-
// setUserAndPassControlsVisible(false);
8585
validateClientOnly();
8686
});
8787
this.txtURL.setLayoutData(gd);
@@ -172,6 +172,7 @@ public void run(IProgressMonitor monitor) throws InvocationTargetException, Inte
172172
private boolean validateClientOnly() {
173173
setMessage(null);
174174
setPageComplete(true);
175+
175176
if (this.txtURL.getText().isEmpty() || !this.txtURL.getText().startsWith("https://")) { //$NON-NLS-1$
176177
setMessage(Messages.AbapGitWizardPageRepositoryAndCredentials_validate_url_error, DialogPage.INFORMATION);
177178
setPageComplete(false);

0 commit comments

Comments
 (0)