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

MongoDB Output throws Null Pointer when fields are blank

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 4.4.3
    • Fix Version/s: 5.1.0 GA
    • Component/s: Step
    • Labels:
      None
    • PDI Sub-component:
    • 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.
    • Epic Link:

      Description

      When the Mongo Document Fields tab is empty, an NPE gets thrown during execution.

      There should be an error message during the transformation validation process to inform the user they need to specify fields.

      The UI dialog should also notify the user of their oversight.

      2013/12/21 10:04:33 - MongoDB Output.0 - ERROR (version 4.4.3.1 from 2013-12-13 04.55.46 by buildguy) : Unexpected error
      2013/12/21 10:04:33 - MongoDB Output.0 - ERROR (version 4.4.3.1 from 2013-12-13 04.55.46 by buildguy) : java.lang.NullPointerException
      2013/12/21 10:04:33 - MongoDB Output.0 - ERROR (version 4.4.3.1 from 2013-12-13 04.55.46 by buildguy) : at org.pentaho.di.trans.steps.mongodboutput.MongoDbOutputData.checkTopLevelConsistency(MongoDbOutputData.java:1037)
      2013/12/21 10:04:33 - MongoDB Output.0 - ERROR (version 4.4.3.1 from 2013-12-13 04.55.46 by buildguy) : at org.pentaho.di.trans.steps.mongodboutput.MongoDbOutput.processRow(MongoDbOutput.java:128)
      2013/12/21 10:04:33 - MongoDB Output.0 - ERROR (version 4.4.3.1 from 2013-12-13 04.55.46 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
      2013/12/21 10:04:33 - MongoDB Output.0 - ERROR (version 4.4.3.1 from 2013-12-13 04.55.46 by buildguy) : at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              mgutierrez Manuel Gutierrez
              Reporter:
              cboyden Curtis Boyden (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: