Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15424

camel-box: addFolderCollaboration may throw an NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.3, 3.5.0
    • 3.5.0, 3.4.4
    • camel-box
    • None
    • Unknown

    Description

      The code is de-referencing the collaborator before checking whether it is null, which can cause an NPE.

       

      It can also happen on 3.4.3.

       

       

      Caused by: java.lang.NullPointerException
       at org.apache.camel.component.box.api.BoxCollaborationsManager.addFolderCollaboration(BoxCollaborationsManager.java:90)
       at org.apache.camel.component.box.BoxCollaborationsManagerTest.lambda$testAddFolderCollaborationNullFolderId$1(BoxCollaborationsManagerTest.java:37)
       at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:55)
       ... 66 more

       

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: