mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
Prevent EmptyStackException in case no stack of prompts is empty
This commit is contained in:
+3
-1
@@ -43,7 +43,9 @@ public class ShellPrompts {
|
||||
* @see #pushPrompt(String)
|
||||
*/
|
||||
public void popPrompt() {
|
||||
this.prompts.pop();
|
||||
if (!this.prompts.isEmpty()) {
|
||||
this.prompts.pop();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user