Browse Source

Prevent EmptyStackException in case no stack of prompts is empty

pull/355/merge
Christian Dupuis 12 years ago
parent
commit
703d7d3fd9
  1. 4
      spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/ShellPrompts.java

4
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/ShellPrompts.java

@ -43,7 +43,9 @@ public class ShellPrompts { @@ -43,7 +43,9 @@ public class ShellPrompts {
* @see #pushPrompt(String)
*/
public void popPrompt() {
this.prompts.pop();
if (!this.prompts.isEmpty()) {
this.prompts.pop();
}
}
/**

Loading…
Cancel
Save