Details
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