Posts

Showing posts with the label string

Salesforce Fact #861 | Simplified null check in string contains function

Image
Sometimes we may encounter NullPointerException while dealing with the contains() string function. The null check can be simplified using the new Null Coalescing operator. Attached are the screenshots.