function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SriramR14SriramR14 

The value 'null' is not valid for operator

Hi All

 


 <apex:pageBlock rendered="{!lstud.size>0}">
            <apex:pageBlocksection>
           <apex:pageBlockTable value ="{!lstud}" var="act">
                <apex:column value="{!act.acc.Name}"/>
                <apex:column value="{!act.acc.Phone}"/>
                <apex:column value="{!act.acc.Industry}"/>
                <apex:column value="{!act.con.LastName}"/>
                <apex:column value="{!act.con.FirstName}"/>
           </apex:pageBlockTable>
              </apex:pageBlocksection>
        </apex:pageBlock>


I am getting this below error on the tab.

The value 'null' is not valid for operator '>'
Error is in expression '{!lstud.size>0}' in component <apex:pageBlock> in page list_accountinfo_vfp
Maharajan CMaharajan C
Hi Sriram, 

Please refer the below link:

https://salesforce.stackexchange.com/questions/18603/rendering-output-panel-if-list-is-not-null

Thanks,
Maharajan.C