Questions tagged [empty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
1answer
125 views

How can i check empty in apex?

I am in curious of knowing which way is the best to check any empty values in apex. For eg, in apex email service I need to check whether the subject is empty or not. Way 1: String subject = email....
0
votes
1answer
53 views

ignoring empty values

I have a function to convert comma seperated values out of a text field into the fitting currency format. It is working when the field is filled but it stops the whole "Mail calculation" when it´s ...
1
vote
1answer
40 views

Unexpected result in validation rule

I have a validation rules as follows: a <> related__r.b When a is null/or empty, the validation rule fails to trigger regardless of the value in b. I fixed the logic with the following: OR(a ...
2
votes
3answers
1k views

Null List VS Empty List

I have a basic question about how a list is loaded. Consider these scenarios: List<Lead> leadList1 = [SELECT Id FROM Lead]; List<Lead> leadList2 = new List<Lead>(); List<Lead&...
0
votes
1answer
1k views

How to check if map is empty in Visualforce page on rendered

<apex:outputPanel rendered="{!map.size > 0}" > this doesn't work. gives the error: Unknown property 'map.size'
7
votes
3answers
9k views

Null check OR isEmpty Check

I have checked many posts but still not clear. A SOQL query returns a list but if SOQL finds no records then it will return an empty list or it will be null? When should i go for isEmpty check or ...
0
votes
2answers
288 views

How To Verify that a List/Field is not empty?

These are the methods I use to check if a field is empty: p.Call_Summary__c != null p.Call_Summary__c!='' And these are the methods to check that a list isn't empty: CClist != null CClist.isEmpty(...
3
votes
0answers
183 views

Why is an empty apex:attribute neither null nor blank but still an empty string?

Consider this simple component: <apex:component access="public" layout="none"> <apex:attribute name="myString" type="String" /> {!ISNULL(myString)} {!ISBLANK(myString)} {!...
0
votes
1answer
56 views

Public list variable is empty

I have a class with 3 methods (1 static and 2 normal) - A,B,C methods. B is the static method. A calls B method, B calls C method. There is master list variable which is updated in C method. In ...
3
votes
1answer
4k views

Checking fields for Blank or Null

I am building a CSV file from an sobject list in a batch class. There are certain fields that are appearing as "NULL". When I am checking them for NULL values using IsBlank , I am getting an error ...
2
votes
2answers
2k views

Plain and empty Sandbox

We want to have a plain empty sandbox - one without any configuration metadata or data from Production. Is it possible to have such a sandbox? Please advise.