tracker issue : CF-3854304

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

Bug for: isValid() inconsistent handling of NULL for integer

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Immanuel Noel)

Created: 11/19/2014

Components: Language

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Critical / Most users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem:
This bug was raised for better tracking. The original, customer reported bug is 3851484. 

The bug states that IsValid operations on "integer" with "null" as the value returns a null pointer exception. 

Method:
Run the below code,
isValid("integer", javaCast("null", "")) 

Result:
Returns java.lang.NullPointerException 

Expected:
Should return NO (instead of exception) especially since isValid("numeric", javaCast("null", "")) doesn't throw an exception.

Workaround:

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

Watson Bug ID:	3854304

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
10003 | February 20, 2015 09:27:07 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
10004 | November 21, 2015 09:39:20 PM GMT