PDA

View Full Version : Small patch for org.pentaho.messages.Messages



nricheton
06-06-2006, 07:06 AM
Hi,

When using parameterized BIRT reports in pentaho 1.1.6, I ran into a null pointer exception coming from this class :
org.pentaho.messages.Messages

the method getEncodedString does not check if the rawValue parameter is not null and fails if it is null.

I think that a missing message shouldn't cause the entire action to fail. So a check for null values should be added.

BTW I was not able to display a custom parameterized BIRT report without doing this modification. After that, my report worked without problems.

Maybe I was missing something.

Thanks
--
Nicolas

Post edited by: nricheton, at: 06/06/2006 11:06

Post edited by: nricheton, at: 06/08/2006 05:17

dmoran
06-12-2006, 09:04 AM
Nicolas,

Thanks for pointing that out! I made your change to the code line. The problem existed for all components that prompt using a custom XSL.

Doug