1

I submitted code in checkmarx and in the result i got error as "Dereferenced Field" on following lines :

source as :

....
61. else return new
PageReference('/'+Vendor_Invoice_Line__c.sobjecttype.getDescribe().getKe
yPrefix()+'/e?vid='+vin.get(0).id+'&retURL=%2F'+vin.get(0).id);

and destination as :

....
70. <apex:pageBlockButtons ><apex:commandButton
value="Save" action="{!save}"
rendered="{!IF(isError==false,true,false)}"/><apex:commandButton
value="Save & New" action="{!savenew}"
rendered="{!IF(isError==false,true,false)}"/><apex:commandButton
value="Cancel" action="{!cancel}"/></apex:pageBlockButtons>

can anyone help me with this error, i don't know why this error coming? what should i change to solve this error?

Any help would be really appreciated!!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.