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

        Jigar Mehta created issue -
        Jigar Mehta made changes -
        Field Original Value New Value
        Affects Version/s DotCMIS 0.3 [ 12316335 ]
        Affects Version/s OpenCMIS 0.3.0 [ 12316084 ]
        Jigar Mehta made changes -
        Attachment atompub-writer.patch [ 12501844 ]
        Florian Müller made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Florian Müller [ fmui ]
        Fix Version/s DotCMIS 0.4 [ 12318644 ]
        Resolution Fixed [ 1 ]

          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