aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/compose.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/compose.go')
-rw-r--r--commands/account/compose.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/account/compose.go b/commands/account/compose.go
index d4128db6..1a62d0a3 100644
--- a/commands/account/compose.go
+++ b/commands/account/compose.go
@@ -30,6 +30,9 @@ func (Compose) Execute(aerc *widgets.Aerc, args []string) error {
return err
}
acct := aerc.SelectedAccount()
+ if acct == nil {
+ return errors.New("No account selected")
+ }
if template == "" {
template = aerc.Config().Templates.NewMessage
}