https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2022-07-03T18:27:58ZSaxonica Developer CommunitySaxon - Bug #5585: SaxonCS reports missing name attribute on xsl:accumulator but then gives System.ArgumentNullExceptionhttps://saxonica.plan.io/issues/5585?journal_id=211812022-07-03T18:27:58ZMichael Kaymike@saxonica.com
<ul></ul><p>The reason this is crashing on SaxonCS but not on SaxonJ is that in Java, we are using a map implementation for the <code>AccumulatorRegistry</code> that allows a call on <code>get(null)</code>, whereas in C#, we are using a map implementation where <code>Get(Null)</code> causes an exception. In other words, it's pure luck that the code doesn't fail in SaxonJ.</p>
<p>We should adopt the usual recovery strategy where a name is missing or invalid of substituting a system-generated name.</p> Saxon - Bug #5585: SaxonCS reports missing name attribute on xsl:accumulator but then gives System.ArgumentNullExceptionhttps://saxonica.plan.io/issues/5585?journal_id=211822022-07-03T19:09:53ZMichael Kaymike@saxonica.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Applies to branch</strong> <i>trunk</i> added</li><li><strong>Fix Committed on Branch</strong> <i>11, trunk</i> added</li></ul><p>The patch is in the Java XSLAccumulator code even though the problem only manifests in SaxonCS.</p> Saxon - Bug #5585: SaxonCS reports missing name attribute on xsl:accumulator but then gives System.ArgumentNullExceptionhttps://saxonica.plan.io/issues/5585?journal_id=214582022-07-28T15:49:02ZDebbie Lockettdebbie@saxonica.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Fixed in Maintenance Release</strong> <i>11.4</i> added</li></ul><p>Bug fix applied in the Saxon 11.4 maintenance release.</p>