aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/pipe.go')
-rw-r--r--commands/msg/pipe.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go
index 821f3591..77e5d961 100644
--- a/commands/msg/pipe.go
+++ b/commands/msg/pipe.go
@@ -112,6 +112,9 @@ func (_ Pipe) Execute(aerc *widgets.Aerc, args []string) error {
if pipeFull {
store := provider.Store()
+ if store == nil {
+ return errors.New("Cannot perform action. Messages still loading")
+ }
msg, err := provider.SelectedMessage()
if err != nil {
return err