Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348158 - NPE when previewing chart with a non-empty value (Y) series followed by an empty series
Summary: NPE when previewing chart with a non-empty value (Y) series followed by an em...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-Chart-inbox@eclipse.org CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 21:39 EDT by Kelsen Diogenes CLA
Modified: 2011-06-06 23:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelsen Diogenes CLA 2011-06-02 21:39:07 EDT
Build Identifier: 2.6.0.v20100609-1613

I've spent a few hours browsing the bug list to find this issue but had no luck (although found similar ones but not quite the same). This issue may have even been resolved in version 2.6.2 but I just would like to confirm before upgrading.

I'm getting NullPointerException during report preview whenever a chart (I've tested bar or line) has multiple value (Y) series with an empty series coming right after a non-empty series. I've tested all combinations of two and three series and the exception is always the same.

Reproducible: Always

Steps to Reproduce:
1.Create a dataset with a mix of populated and null columns:
 A   B    C     D
--------------------
Jan  10  null  null
Feb  20  null  null
Mar  30  null  null

2.Create a simple line chart with col A on category (X) and cols B,C,D as value series (Y)

3.Depending on the order of the value series (Y) you will always get an exception during preview when an empty column is after a non-empty column. See scenarios below:

* with two Y series:
C,D (ok)
C,B (ok)
B,C (exception)

* with three series:
C,D,B (ok)
C,B,D (exception)
B,C,D (exception)
Comment 1 Xiaoying Gu CLA 2011-06-06 23:19:59 EDT
Can not reproduce this issue in 2.6.2 release build.