Opened 9 years ago
Closed 9 years ago
#14360 closed bug (duplicate)
parseJSON gives error with unobstusive validation
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9rc1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Line 540 : if ( window.JSON && window.JSON.parse ) { return window.JSON.parse( data ); }
Problem : because data is undefined it gives us an error. solution : check if data is undefined if yes return null before the native json parse check
Note: See
TracTickets for help on using
tickets.
Duplicate of #13430.