import java.util.Map;
@State(
- name = "hg4idea.settings",
- storages = @Storage(id = "hg4idea.settings", file = "$OPTIONS$/hg4idea.xml")
+ name = "HgGlobalSettings",
+ storages = @Storage(id = "HgGlobalSettings", file = "$APP_CONFIG$/vcs.xml")
)
public class HgGlobalSettings implements PersistentStateComponent<HgGlobalSettings> {
package org.zmlx.hg4idea.command;
import org.apache.commons.lang.StringUtils;
+import org.jetbrains.annotations.Nullable;
import java.util.List;
);
}
+ @Nullable
private static String getLastErrorLine(HgCommandResult result) {
- List<String> errorLines = result.getErrorLines();
+ if (result == null) {
+ return null;
+ }
+ final List<String> errorLines = result.getErrorLines();
if (errorLines.isEmpty()) {
return null;
}