From: bruce m. <tr...@us...> - 2004-07-28 21:44:28
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2964/modules/core/src/com/babeldoc/core/pipeline/stage Modified Files: XslTransformPipelineStage.java Log Message: 1. Fixed a logging error where an exception with no root cause prints no error 2. Fixed bad error messaging when bad pipeline or pipeline stage provided to process 3. Fixed a null pointer exception in XslTransform Stage where empty document causes NPE Index: XslTransformPipelineStage.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage/XslTransformPipelineStage.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** XslTransformPipelineStage.java 21 Jul 2004 23:13:46 -0000 1.21 --- XslTransformPipelineStage.java 28 Jul 2004 21:44:19 -0000 1.22 *************** *** 216,219 **** --- 216,222 ---- String xslscript = null; + if(getDocument().getLength()==0) { + throw new PipelineException(I18n.get("core.pipeline.stage.xslTransform.nodoc")); + } xslfile = this.getOptions(TRANSFORMATION_FILE); xslscript = this.getOptions(TRANSFORMATION_SCRIPT); |