score:0
Accepted answer
i found out that, one of the item's color attribute was null and cause exception and return null. so i add a check to be not null before split and it works.
thanks all of you guys.
Source: stackoverflow.com
Related Query
- String Comparison in LINQ to SQL result null
- linq sql find duplicates but take null and empty string as the same
- LINQ String comparison with NULL handling
- SQL subquery result in LINQ and Entity Framework Code First
- Strange result with string comparison in LINQ
- LINQ returning Null while same query when write in SQL return result
- how to translate a linq expression into sql string use c# code
- How can I check null and assign new value in linq anonymous type to select expected sql result
- Reuse stored procedure result in linq to sql in Code First
- Convert SQL to Linq left join with null
- How are people unit testing code that uses Linq to SQL
- LINQ syntax where string value is not null or empty
- Select top 1 result from subquery in linq to sql
- Issues Doing a String Comparison in LINQ
- LINQ is Generating Extra IS NULL Condition in SQL Statement
- linq where clause and count result in null exception
- How to assign empty string if the value is null in linq query?
- Can I use C# string interpolation with Linq to SQL
- Linq to Sql - Set connection string dynamically based on environment variable
- Dynamic LINQ DateTime Comparison String Building - Linq To Entities
- LINQ to SQL join generates SQL which joins on IS NULL
- LINQ SQL query check if a object field is not null
- How to get linq result as string array?
- LINQ to SQL - select where text like string array
- Linq to SQL .Equals returns true when comparing int to string --> Id.Equals("5") returns true
- Net core EF 3.1 LINQ string comparison no longer working
- LINQ to Entities split string on result
- Linq to objects when object is null VS Linq to SQL
- Linq to SQL: Where clause comparing a Nullable<DateTime> with a SQL datetime null column
- linq to sql left join, need to check for null for right table
More Query from same tag
- Linq query to return items of list with another list inside it
- How to create an efficient data structure for two-dimensional LINQ operations?
- Is there any way in LINQ to pass value from the selected object
- Easiest way of comparing two lists in C# with LINQ and adding missing items to Entity Class
- Set table Name and property dynamically ,base on Condition(DBContext)
- Use LINQ to compare the two lists
- Linq to Entities - OrderBy Tags (many to many relationship)
- Replacing values with LINQ in a list with the previous value matching some criterion
- how to create dynamic query using Lambda expression
- LINQ - Limit result based on count returned by custom function
- LINQ- comparison & updating values
- LINQ Compare two lists where property value is not equal
- Query an XDocument Query doesn't work when element/root has Namespace as atribute
- Slow SQL Server linq query
- Using LINQ intersect function with a non-primitive type
- Goto in the ElementAt extension method
- how to read the last inserted field with linq
- Linq: How to assign local variables within linq from array
- How to select everything using linq?
- LINQ Getting The Next Row ID?
- Converting a linq-query to linqjs
- Access dictionary value inside linq method
- Get total records per date
- Multi Column Group By Expression Tree
- How to group by in linq in c#?
- query never returning results - "Enumeration yielded no results"
- Linq "join" or "GroupJoin" not compiling?? "Cannot resolve symbol 'GroupJoin'"
- LINQ Fluent API version of left join query
- Linq function like .Net string.CompareOrdinal
- How to use LINQ to get method name and namespace in a soap request?