IDEA-163920 NPE when saving proxy settings

This commit is contained in:
Vladimir Krivosheev
2016-11-15 13:43:59 +01:00
parent 5ed750262d
commit ac59e093c1
@@ -633,7 +633,12 @@ public class HttpConfigurable implements PersistentStateComponent<HttpConfigurab
return null;
}
private void storeSecure(String key, String value) {
private void storeSecure(String key, @Nullable String value) {
if (value == null) {
removeSecure(key);
return;
}
try {
//PasswordSafe.getInstance().storePassword(null, HttpConfigurable.class, key, value);
synchronized (myProxyCredentials) {