Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-464

Call to CheckIn method with second parameter with value null gets an exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • DotCMIS 0.3
    • DotCMIS 0.4
    • dotcmis
    • None

    Description

      Calling Syntax,

      IDocument iDoc = (IDocument)cmisObject;
      iDoc.CheckIn(false, null, contentStream, "Checkin Comment");

      Because of second parameter as null, when DotCMIS calls GetTitle() method from atompub-writer.cs it gets exception, "Object Reference not set to an instance of the object".

      Possible fix can be to check for null before iterating through the list in GetTitle method (Line 147 - atompub-writer.cs)

      Attachments

        1. atompub-writer.patch
          1 kB
          Jigar Mehta

        Activity

          People

            fmui Florian Müller
            jigarme Jigar Mehta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: