tracker issue : CF-3600373

select a category, or use search below
(searches all categories and all time range)
Title:

In a CFM template (Coldbox view), using #a( b = {c:0} )# will in some situations cause a NullPointerException.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Peter Boughton / Peter Boughton (Peter Boughton)

Created: 07/24/2013

Components: Language, Framework Support

Versions: 10.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: Final /

Priority/Frequency: Critical / All users will encounter

Locale/System: English / Platforms All

Vote Count: 0

In a CFM template (Coldbox view), using #a( b = {c:0} )# will in some situations cause a NullPointerException.

The page otherwise only contains cfoutput, a single cfparam, and a bunch of cfif and cfloop tags.

May or not be related to #3595245

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3600373

External Customer Info:
External Company:  
External Customer Name: boughtonp
External Customer Email:  
External Test Config: CF 10,0,11,285437

Attachments:

Comments:

This is interesting... can't you provide a full stack trace of the error when it happens?
Comment by External U.
14828 | July 24, 2013 11:58:03 AM GMT
can you provide a repro case and the error stacktrace?
Comment by Rupesh K.
14829 | July 26, 2013 04:08:14 AM GMT
No stack trace is reported - the contents of that section of the Coldbox error template is just "java.lang.NullPointerException" The file can be stripped down to this and still exhibits the error: <cfoutput> #x# <cfif cond1 >stuff</cfif> <cfif cond2 > #a( b = {c:0} )# </cfif> </cfoutput> Removing any part of that causes the file to be parsed succesfully. Changing order of the #x# and the first cfif doesn't have any effect, but they both must occur before the second cfif. (Adding any other code at any place doesn't have any effects on this.) To reproduce, setup coldbox with sample apps then place the above code at: {webroot}/coldbox/samples/applications/sampleloginapp/views/general/Login.cfm And browse to: http://localhost:8500/coldbox/samples/applications/sampleloginapp/
Comment by External U.
14830 | July 26, 2013 06:45:35 AM GMT
It seems there just need to be (at least) two things (tags/hashexprs) before the cfif - the NPE fires for all four of these: <cfoutput> <cfif cond1 >stuff</cfif> <cfif cond1 >stuff</cfif> <cfif cond2 > #a( b = {c:0} )# </cfif> </cfoutput> <cfoutput> #x# #x# <cfif cond2 > #a( b = {c:0} )# </cfif> </cfoutput> <cfoutput> <cfset x=1 /> <cfdump var=#x# /> <cfif cond2 > #a( b = {c:0} )# </cfif> </cfoutput> <cfoutput> <cfscript></cfscript> <cfscript></cfscript> <cfif cond2 > #a( b = {c:0} )# </cfif> </cfoutput>
Comment by External U.
14831 | July 26, 2013 06:51:58 AM GMT
verified on build no:11.0.03.292643 Platform tested:WIndows 7 x64. test case location://depot/qa/cf/regression/coretests/coldfusion/functions/structure/bugs/CF-3600373/CF-3600373.cfm
Comment by Suchika S.
14832 | December 22, 2014 06:57:15 AM GMT