http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2677 *** shadow/2677 Wed Jul 18 11:36:25 2001 --- shadow/2677.tmp.11466 Wed Jul 18 11:36:25 2001 *************** *** 0 **** --- 1,30 ---- + +============================================================================+ + | Transformer.setOutputProperties(Properties prop) doesn't handle null input | + +----------------------------------------------------------------------------+ + | Bug #: 2677 Product: XalanJ2 | + | Status: NEW Version: 2.2.x | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Other Component: org.apache.xalan.transf | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + According to the API, Transformer.setOutputProperties(Properties) method should + accept null, but I get NullPointerException when I try to pass it in. The + following code works (with uriResolver set to null, and all valid sources) if + outputProperties is not null, but fails with NullPointerException when it is. + + Transformer tr = _theFactory.newTransformer(xsl); + tr.setURIResolver(uriResolver); + tr.setOutputProperties(outputProperties); + tr.transform(sourceXml, resultXml); + + Exception in thread "main" java.lang.NullPointerException + at org.apache.xalan.transformer.TransformerImpl.setOutputProperties(Tran + sformerImpl.java:849) + ....
