giacomo 2003/05/03 14:22:59
Modified: src/scratchpad/src/org/apache/cocoon/generation JXFormsGenerator.java Log: Helps better instead of a NPE Revision Changes Path 1.11 +5 -0 cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXFormsGenerator.java Index: JXFormsGenerator.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/scratchpad/src/org/apache/cocoon/generation/JXFormsGenerator.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -b -u -r1.10 -r1.11 --- JXFormsGenerator.java 3 May 2003 20:36:12 -0000 1.10 +++ JXFormsGenerator.java 3 May 2003 21:22:59 -0000 1.11 @@ -1544,6 +1544,11 @@ startElement.localName, startElement.raw, startElement.attributes); + if (newForm == null) { + throw new SAXParseException("A form with id=\"" + id + "\" does not exist", + ev.location, + null); + } rootContext = jxpathContextFactory.newContext(null, newForm.getModel());