0

I'm using the language property to translate the public visualforce forms to set the language to either english or French. These are used through sites to make them publicly available. When I use English, or any other language, the form works. If I choose French I get the following error. The other thing that makes this odd is that using French or English works as expected in the sandbox. Is there something I'm missing

Language setting:

<apex:page showheader="false"  controller="ContactUsCtrl" language="{!$CurrentPage.parameters.lang}"> 

OR

<apex:page showheader="false"  controller="ContactUsCtrl" language="fr"> 

Error

12:44:31.0 (583049995)|EXCEPTION_THROWN|[70]|System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AccountTrigger: execution of AfterInsert

caused by: System.NullPointerException: Attempt to de-reference a null object

Class.TSGADX.AccountHandler: line 11, column 1
Trigger.TSGADX.AccountHandlerTrigger: line 10, column 1: []
12:44:31.0 (583478426)|HEAP_ALLOCATE|[70]|Bytes:337
12:44:31.0 (583544169)|VARIABLE_SCOPE_BEGIN|[179]|e|Exception|true|false
12:44:31.0 (583658103)|VARIABLE_ASSIGNMENT|. 
[179]|e|"common.apex.runtime.impl.DmlExecutionException: Insert failed. First exception on 
row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AccountTrigger: execution of 
AfterInsert\n\ncaused by: System.NullPointerException: Attempt to de-reference a null 
object\n\nClass.AccountHandler: line 11, column 1\nTrigger.AccountTrigger: line 10, column 
1: []"|0x736208bd
12:44:31.0 (583672560)|STATEMENT_EXECUTE|[179]
1
  • 1
    Please post the code of the AccountHandler class, otherwise we can't help you. Oct 22 '20 at 9:55

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.