If an attachment is created with a null (rather than empty) comment, setting a new one causes an NPE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 1.4.3
    • Affects Version/s: 1.4.2
    • Component/s: None

      Offending code at line 111 of MoveAttachmentAction should be:
      if (TextUtils.stringSet(newComment) && (getAttachment().getComment() == null || !getAttachment().getComment().equals(newComment)))
      getAttachment().setComment(newComment);

              Assignee:
              Unassigned
              Reporter:
              Tom Davies
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: