Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Oliver Jones / Oliver Jones (Oliver Jones)
Created: 04/07/2016
Components: Charting/Graphing
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 0
Problem Description: CFCHART within custom tag within function causes null pointer exception
Steps to Reproduce: Run ChartTest.cfm
ChartTest.cfm:
<cffunction name="getChart" output="true">
<CF_CfchartTag />
</cffunction>
<cfoutput>#getChart()#</cfoutput>
CfchartTag.cfm:
<cfif thisTag.executionMode EQ "start">
<cfchart format="png">
<cfchartseries type="Bar" label="Numbers">
<cfchartdata item="a" value="5">
<cfchartdata item="b" value="10">
</cfchartseries>
</cfchart>
</cfif>
Actual Result:
java.lang.NullPointerException
at coldfusion.tagext.io.ChartSeriesTag.resetChartObjects(ChartSeriesTag.java:359)
at coldfusion.tagext.io.ChartSeriesTag.reset(ChartSeriesTag.java:354)
at coldfusion.tagext.io.ChartSeriesTag.release(ChartSeriesTag.java:343)
at coldfusion.runtime.NeoPageContext$TagSet.release(NeoPageContext.java:2568)
at coldfusion.runtime.NeoPageContext.release(NeoPageContext.java:2189)
at coldfusion.runtime.CfJspPage.release(CfJspPage.java:198)
at coldfusion.tagext.lang.IncludeTag.releaseTag(IncludeTag.java:386)
at coldfusion.tagext.lang.ModuleTag.release(ModuleTag.java:231)
at coldfusion.tagext.GenericTag.doFinally(GenericTag.java:239)
at coldfusion.tagext.lang.ModuleTag.doFinally(ModuleTag.java:573)
...
Expected Result:
Chart displayed (this functionality worked in CF9)
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4136756
External Customer Info:
External Company:
External Customer Name: Oliver Jones
External Customer Email:
External Test Config: My Hardware and Environment details: Win7 CF2016
Attachments:
Comments: