Don't try to store incomplete credentials in secure store
commit7bb7fdf0635339897d9ddd65595c098ad1749c2c
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 4 Jan 2018 22:27:34 +0000 (4 23:27 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 1 Apr 2018 20:58:07 +0000 (1 15:58 -0500)
treec36f5e11b99e762fdc5d156acfaff12f921870ca
parent46b407b474d33d1e35b3518d418a688eac521cc3
Don't try to store incomplete credentials in secure store

The Eclipse secure store throws the exception
org.eclipse.equinox.security.storage.StorageException: No password
provided
when EGit tries to store incomplete credentials (missing user or
password). Hence only attempt to store credentials if user and password
are both available.

Bug: 525769
Change-Id: Icfa2743a69bda2e82f8c1034976dfde0482731d5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/securestorage/EGitSecureStore.java