Uploaded image for project: 'Pentaho Reporting and Pentaho Report Designer'
  1. Pentaho Reporting and Pentaho Report Designer
  2. PRD-2020

Changing Sort Type of the property/style editor can produce an NPE

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.5.0
    • Component/s: None
    • Labels:
      None
    • 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:
      Ubuntu 8.x

      Description

      Click on any label field (may be more types, I didn't check). Change the sorting type of either the Style or Property table to sort Alphabetically ascending, then decending, then back to Categorical. At this point the table goes blank and the following error will show in the error dialog.

      java.lang.NullPointerException
      at org.pentaho.reporting.designer.core.editor.styles.StyleTableModel.findFirstOccuranceOfHeaderTitle(StyleTableModel.java:393)
      at org.pentaho.reporting.designer.core.editor.styles.StyleTableModel.reconcileState(StyleTableModel.java:380)
      at org.pentaho.reporting.designer.core.editor.styles.StyleTableModel.updateData(StyleTableModel.java:359)
      at org.pentaho.reporting.designer.core.editor.styles.StyleTableModel$UpdateDataTask.run(StyleTableModel.java:241)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      at java.lang.Thread.run(Thread.java:595)

      java.lang.NullPointerException

      ==============================================================================

      java.lang.NullPointerException
      at org.pentaho.reporting.designer.core.editor.attributes.AbstractAttributeTableModel.findFirstOccuranceOfHeaderTitle(AbstractAttributeTableModel.java:340)
      at org.pentaho.reporting.designer.core.editor.attributes.AbstractAttributeTableModel.reconcileState(AbstractAttributeTableModel.java:327)
      at org.pentaho.reporting.designer.core.editor.attributes.AbstractAttributeTableModel.updateData(AbstractAttributeTableModel.java:307)
      at org.pentaho.reporting.designer.core.editor.attributes.VisualAttributeTableModel$UpdateDataTask.run(VisualAttributeTableModel.java:162)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      at java.lang.Thread.run(Thread.java:595)

        Issue Links

          Activity

          Hide
          ecuellar Ezequiel Cuellar added a comment - - edited

          Commenting sorting controls for now as requested during standup.

          The issue is that the groupings are being set to null after clicking on the second sort and when clicking back to the groupings button the NPE is thrown.

          This issue does not happen in the Legacy Chart Editor

          To fix compare how groupings are handled between the AbstractAttributeTableModel (master report) AND ExpressionPropertiesTableModel (legacy chart)
          at the updateData() method in each one

          REOPEN AND ASSIGN BACK TO ME PLEASE!!!!!!!!!!!!!

          Show
          ecuellar Ezequiel Cuellar added a comment - - edited Commenting sorting controls for now as requested during standup. The issue is that the groupings are being set to null after clicking on the second sort and when clicking back to the groupings button the NPE is thrown. This issue does not happen in the Legacy Chart Editor To fix compare how groupings are handled between the AbstractAttributeTableModel (master report) AND ExpressionPropertiesTableModel (legacy chart) at the updateData() method in each one REOPEN AND ASSIGN BACK TO ME PLEASE!!!!!!!!!!!!!
          Hide
          gdavid Golda Thomas added a comment -

          Tested this in the PRD3.5.0.GA build and there is not option to sort by property as per design.
          Marking this as resolved.

          Show
          gdavid Golda Thomas added a comment - Tested this in the PRD3.5.0.GA build and there is not option to sort by property as per design. Marking this as resolved.
          Hide
          gdavid Golda Thomas added a comment -

          Validated in 3.5.0GA

          Show
          gdavid Golda Thomas added a comment - Validated in 3.5.0GA

            People

            • Assignee:
              gdavid Golda Thomas
              Reporter:
              nbaker Nick Baker (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: