You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kh...@apache.org on 2017/09/20 21:37:36 UTC
[geode] 01/02: GEODE-3590: Prevent NPE during scripted disconnect.
This is an automated email from the ASF dual-hosted git repository.
khowe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
commit d41dcdfa9f36267f2526f24c71dac1862400b62b
Author: Patrick Rhomberg <pr...@pivotal.io>
AuthorDate: Thu Sep 14 15:41:50 2017 -0700
GEODE-3590: Prevent NPE during scripted disconnect.
---
.../apache/geode/management/internal/cli/commands/ShellCommands.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/ShellCommands.java b/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/ShellCommands.java
index fca84a7..f28e989 100644
--- a/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/ShellCommands.java
+++ b/geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/ShellCommands.java
@@ -196,7 +196,9 @@ public class ShellCommands implements GfshCommand {
operationInvoker.toString()));
LogWrapper.getInstance().info(CliStrings.format(CliStrings.DISCONNECT__MSG__DISCONNECTED,
operationInvoker.toString()));
- gfshInstance.setPromptPath(RegionPathConverter.DEFAULT_APP_CONTEXT_PATH);
+ if (!gfshInstance.isHeadlessMode()){
+ gfshInstance.setPromptPath(RegionPathConverter.DEFAULT_APP_CONTEXT_PATH);
+ }
} else {
infoResultData.addLine(CliStrings.DISCONNECT__MSG__NOTCONNECTED);
}
--
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.