aboutsummaryrefslogtreecommitdiffstats
path: root/lib/messageview.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/messageview.go')
-rw-r--r--lib/messageview.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/messageview.go b/lib/messageview.go
index 08ea92fb..4f1d0cde 100644
--- a/lib/messageview.go
+++ b/lib/messageview.go
@@ -34,6 +34,9 @@ type MessageView interface {
}
func usePGP(info *models.BodyStructure) bool {
+ if info == nil {
+ return false
+ }
if info.MIMEType == "application" {
if info.MIMESubType == "pgp-encrypted" ||
info.MIMESubType == "pgp-signature" {