Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-18243

NullPointerException due to a unused Hop element stored on the ktr code

    XMLWordPrintable

    Details

    • Story Points:
      0
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Operating System/s:
      Windows 10
    • Steps to Reproduce:
      Hide
      • Open "Param_Step_Trans_to_TransMapping_Inherit_all_variables.ktr" on Spoon
      • Run the transformation
      • Should pass, but fails with a NPE.
      • Open "sub_trans.ktr" on Spoon
      • Delete the step "Write to Log"

      Expected result:

      • Should be deleted

      Actual result:

      • A NPE message appears.
      Show
      Open "Param_Step_Trans_to_TransMapping_Inherit_all_variables.ktr" on Spoon Run the transformation Should pass, but fails with a NPE. Open "sub_trans.ktr" on Spoon Delete the step "Write to Log" Expected result: Should be deleted Actual result: A NPE message appears.

      Description

      When running the transformation "Param_Step_Trans_to_TransMapping_Inherit_all_variables.ktr" a NPE is returned by the child transformation. Now, on the child transformation ("sub_trans.ktr"), if we try to remove any of the steps, we will receive another NPE. (see "NPE_Error.png")

      We have realized that on the source code of the "sub_trans.ktr" file, there is an element called Hop (see "Transf_code.png"), that does not appear on the GUI and it is pointing to a element that does not exist, and this is causing the NPE error.

      Also if we click OK on the "NPE_Error.png" a popup will appear saying if we want to save or continue. If we click on Save the Spoon closes himself.

      See attachments.  

        Attachments

        1. execution_PDI_Logs.txt
          60 kB
        2. inherit_all_variables.zip
          6 kB
        3. NPE_Error.png
          NPE_Error.png
          37 kB
        4. Transf_code.png
          Transf_code.png
          44 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jventura Joao Ventura
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: