Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348158

Summary: NPE when previewing chart with a non-empty value (Y) series followed by an empty series
Product: z_Archived Reporter: Kelsen Diogenes <kelsen_diogenes>
Component: BIRTAssignee: Birt-Chart-inbox <Birt-Chart-inbox>
Status: RESOLVED FIXED QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.