widgets/msgviewer: Don't crash if pager is nil
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
This commit is contained in:
parent
331b915139
commit
ad68a9e4e4
|
@ -506,7 +506,7 @@ func (pv *PartViewer) SetSource(reader io.Reader) {
|
|||
}
|
||||
|
||||
func (pv *PartViewer) attemptCopy() {
|
||||
if pv.source != nil && pv.pager.Process != nil {
|
||||
if pv.source != nil && pv.pager != nil && pv.pager.Process != nil {
|
||||
header := message.Header{}
|
||||
header.SetText("Content-Transfer-Encoding", pv.part.Encoding)
|
||||
header.SetContentType(pv.part.MIMEType, pv.part.Params)
|
||||
|
|
Loading…
Reference in New Issue