Chemistry
  1. Chemistry
  2. CMIS-464

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: DotCMIS 0.3
    • Fix Version/s: DotCMIS 0.4
    • Component/s: dotcmis
    • Labels:
      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)

        Activity

        Hide
        Jigar Mehta added a comment -

        Here is possible fix for the bug.

        Show
        Jigar Mehta added a comment - Here is possible fix for the bug.
        Hide
        Florian Müller added a comment -

        Fixed. Thanks for the report!

        Show
        Florian Müller added a comment - Fixed. Thanks for the report!

          People

          • Assignee:
            Florian Müller
            Reporter:
            Jigar Mehta
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development