tenthe opened a new issue, #2886:
URL: https://github.com/apache/streampipes/issues/2886

   ### Body
   
   If a user deletes a nested property and its parent, it can cause a null 
pointer exception.
   
   I already provided a test case, see below.
   
   ## Extend the test code
   - **File:** deleteTransformationRule.spec.ts
   - **Test:** Test delete nested properties
   - **Add the following code to the bottom of the test:**
   
   ```
   ConnectBtns.refreshSchema().click();
   
   // Test to delete the parent property
   ConnectEventSchemaUtils.deleteProperty('parent');
   cy.dataCy('schema-preview-result-event')
       .should(
           'have.text',
           '{"timestamp":\u00A01667904471000}',
       );
   ```
   
   ## Problem Details
   - The problem occurs in the `DeleteTransformationRule.applyTransformation`
     - The value event is null
   - Another problem is in the `SupportsNestedTransformationRule.applyNested`
     - A copy of the child object is added to the event in line 45, but the 
child could also be null
   
   ### StreamPipes Committer
   
   I acknowledge that I am a maintainer/committer of the Apache StreamPipes 
project.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@streampipes.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to