Bug 743262 - empty column header in decision table throws NPE
Summary: empty column header in decision table throws NPE
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRE (Expert, Fusion)
Version: BRMS 5.2.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: Nobody
QA Contact: Marek Baluch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-04 12:34 UTC by Jiri Svitak
Modified: 2022-11-15 23:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously including an empty column header in a Decision Table resulted in a NullPointerException being thrown. The issue has been resolved by including an error message that warns the user not to leave the column header blank.
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Class to reproduce bug (3.62 KB, application/zip)
2011-10-04 12:34 UTC, Jiri Svitak
no flags Details

Description Jiri Svitak 2011-10-04 12:34:52 UTC
Created attachment 526236 [details]
Class to reproduce bug

Description of problem:
Empty column header in decision table throws NPE. Happens both with conditions and actions. Happens both with XLS and CSV. Error can be seen in attached example. The example contains error, but parser should not fail with NPE, but should respond with appropriate error message understandable by user.

Version-Release number of selected component (if applicable):
BRMS 5.2.0 ER5

How reproducible:
Run attached test case.

Steps to Reproduce:
1. Unzip test case.
2. Run as Java app.
  
Actual results:
XLS and CSV parsers throws NPE in described situation.

Expected results:
XLS and CSV should always respond with appropriate error message.

Comment 1 Jiri Svitak 2012-01-26 10:14:02 UTC
I have added a pull request with test case:
https://github.com/droolsjbpm/drools/pull/86

Comment 2 Geoffrey De Smet 2012-02-01 14:06:16 UTC
Fixed as requested: "respond with appropriate error message".

I've also looked extensively it is possible to support such an empty column header as that looks to be a valid use case, but the code design doesn't allow it easily.

Comment 4 Ryan Zhang 2012-02-15 09:13:11 UTC
Please verify the issue on 5.3 ER4.

Comment 5 Jiri Svitak 2012-02-21 11:08:00 UTC
Verified in 5.3 ER4.

Comment 6 lcarlon 2012-06-05 05:32:21 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously including an empty column header in a Decision Table resulted in a NullPointerException being thrown. The issue has been resolved by including an error message that warns the user not to leave the column header blank.


Note You need to log in before you can comment on or make changes to this bug.