NSDictionary array used in the application.
But some items are null.
selectedCategory [NSDictionary] 24 values
[0] __NSDictionaryM * 3 key/value pairs 0x00000002811ccde1
[1] __NSDictionaryM * 3 key/value pairs 0x00000002811ccde2
[2] NSNull * 0x1ef2e5810 0x00000001ef2e5813
[3] __NSDictionaryM * 3 key/value pairs 0x00000002811ccde4
[4] __NSDictionaryM * 3 key/value pairs 0x00000002811ccde5
[5] NSNull * 0x1ef2e5810 0x00000001ef2e5816
[6] __NSDictionaryM * 3 key/value pairs 0x00000002811ccde7
[7] __NSDictionaryM * 3 key/value pairs 0x00000002811ccde8
"selectedCategory[index]"
If the item is null during the query, the program returns an error and closes.
Error Detail : NSArray element failed to match the Swift Array Element type
Expected NSDictionary but found NSNull
I tried all the ways, but I couldn't get the result. What should I do?