Changeset 179


Ignore:
Timestamp:
10/25/02 02:45:10 (20 years ago)
Author:
piso
Message:

getAttachmentAtDot(): avoid NPE if dot is null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/mail/MessageBuffer.java

    r111 r179  
    33 *
    44 * Copyright (C) 2000-2002 Peter Graves
    5  * $Id: MessageBuffer.java,v 1.8 2002-10-11 18:34:50 piso Exp $
     5 * $Id: MessageBuffer.java,v 1.9 2002-10-25 02:45:10 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    5151import org.armedbear.j.MessageDialog;
    5252import org.armedbear.j.MessageHeaderLine;
     53import org.armedbear.j.Position;
    5354import org.armedbear.j.ProgressNotifier;
    5455import org.armedbear.j.Property;
     
    715716    private MimePart getAttachmentAtDot()
    716717    {
    717         Line dotLine = Editor.currentEditor().getDotLine();
    718         if (dotLine != null) {
    719             Annotation annotation = dotLine.getAnnotation();
     718        Position dot = Editor.currentEditor().getDot();
     719        if (dot != null) {
     720            Annotation annotation = dot.getLine().getAnnotation();
    720721            if (annotation != null) {
    721722                Object obj = annotation.getUserObject();
Note: See TracChangeset for help on using the changeset viewer.