You need to sign in to do that
Don't have an account?

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
<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
Please refer the below link:
https://salesforce.stackexchange.com/questions/18603/rendering-output-panel-if-list-is-not-null
Thanks,
Maharajan.C