+ Start a Discussion
Cristian W.Cristian W. 

Attempt do de-reference null object

I'm in a little bit of struggle here. Have an error in this class. I tried to debug log this error but I don't understand why only one user is having this problem. For the rest of the users this error does not occur. This is the error:
 
Visualforce Page: /apex/VisitReportPage

caused by: System.NullPointerException: Attempt to de-reference a null object Class.VisitReportPageExtension.setIsFullReport: line 105, column 1 Class.VisitReportPageExtension.: line 65, column 1


This is my class:

 

public with sharing class VisitReportPageExtension {

    public List<SelectOption> PicklistValues { get; set; }
    public List<SelectOption> SecondPicklistValues { get; set; }
    public List<SelectOption> LastPicklistValues { get; set; }
    public Map<String, String> PicklistMap = new Map<String, String>();

    Public List<String> selectedValues { get; set; }
    Public List<String> SecondselectedValues { get; set; }
    public List<String> LastSelectedValues { get; set; }

    public static final String DEFAULT_TASK_STATUS = 'New';
    public static final String DEFAULT_TASK_PRIORITY = 'Normal';

    public static final String EVENT_URL_PARAM = 'EventID';
    public static final String RETURN_URL_PARAM = 'retUrl';
    public static final String RECORD_TYPE_URL_PARAM = 'RecordType';
    public static final String ACCOUNT_URL_PARAM = 'AccountId';
    public static final String OPPORTUNITY_URL_PARAM = 'OpportunityId';

    public static final String MEMO_REPORT_DEVELEOPER_NAME = 'Call_Memo';

    private List<List<String>> contactFields;
    private Map<ID, Contact> contactsCache = new Map<ID, Contact>();
    private Map<ID, User> userCache = new Map<ID, User>();
    private List<Message> messages = new List<Message>();
    private Map<Id, RecordType> mInteractionReportRecordTypes = null;

    private boolean isFullReport = true;
    private String retURLParam = null;

    public Boolean isNew { get; private set; }
    public Boolean showCreateContactPopup { get; set; }

    public List<ActionItemWrapper> actionItems { get; set; }
    public List<CustomerParticipantWrapper> customerParticipants { get; set; }
    public List<CustomerParticipantWrapper> internalParticipants { get; set; }
    public Contact contactHandler { get; set; }

    public Visit_Report__c record { get; set; }

    /**
     * Constructor creates instance of class. Loads Interaction 
     * report and related records.
     * @param  stdCtr Standard controller.
    */
    public VisitReportPageExtension(ApexPages.StandardController stdCtr) {
        customerParticipants = new List<CustomerParticipantWrapper>();
        internalParticipants = new List<CustomerParticipantWrapper>();

        record = (Visit_Report__c) stdCtr.getRecord();
        isNew = (stdCtr.getId() == null);

        mInteractionReportRecordTypes =
                RecordTypeService.getRecordTypesForObject('Visit_Report__c');
        loadParams();

        loadInteractionRecord();
        clearContactHandler();
        closeCreateContactPopup();
        setIsFullReport(record.RecordTypeId);


        selectedValues = new List<String>();
        SecondselectedValues = new List<String>();
        LastSelectedValues = new List<String>();

        PicklistValues = new List<SelectOption>();
        SecondPicklistValues = new List<SelectOption>();
        LastPicklistValues = new List<SelectOption>();
        List<Schema.PicklistEntry> FieldPicklistvalues =
                Visit_Report__c.Innovation_presented_to_customer__c.getDescribe().getPicklistValues();

        for (Schema.PicklistEntry FieldPicklistvaluesfor : FieldPicklistvalues) {
            PicklistValues.add(new SelectOption(FieldPicklistvaluesfor.getValue(),
                    FieldPicklistvaluesfor.getLabel()));
            PicklistMap.put(FieldPicklistvaluesfor.getvalue(),
                    FieldPicklistvaluesfor.getLabel());
        }
    }


    private void loadParams() {
        Map<String, String> mGetParams = ApexPages.currentPage().getParameters();
        record.EventID__c = mGetParams.get(EVENT_URL_PARAM);
        retURLParam = ApexPages.currentPage().getParameters().get(RETURN_URL_PARAM);

        //TODO get rec type 
        if (record.RecordTypeId == null) {
            if (mGetParams.containsKey(RECORD_TYPE_URL_PARAM)) {
                record.RecordTypeId = mGetParams.get(RECORD_TYPE_URL_PARAM);
            }
        }
        if (mGetParams.containsKey(ACCOUNT_URL_PARAM)) {
            record.Account_Name__c = mGetParams.get(ACCOUNT_URL_PARAM);
        }
    }

    private void setIsFullReport(Id recordTypeId) {
        isFullReport = (mInteractionReportRecordTypes.get(recordTypeId).DeveloperName != MEMO_REPORT_DEVELEOPER_NAME);
    }


    public boolean getIsFullReport() {
        return isFullReport;
    }
}

Why this error only occurs for only one user? I don't know why the code breaks. Any suggestions?
Best Answer chosen by Cristian W.
SRKSRK
replace your setIsFullReport with this and see if you still getting error

 private void setIsFullReport(Id recordTypeId) {
     if(mInteractionReportRecordTypes.containskey(recordTypeId))
        isFullReport = (mInteractionReportRecordTypes.get(recordTypeId).DeveloperName != MEMO_REPORT_DEVELEOPER_NAME);
     else
      isFullReport = null;
    }
 

All Answers

paul diracpaul dirac
Try to debug what's actually inside 'record.RecordTypeId' variable. However you should check if the variable is empty before assigning it to another, this is probably the cause of your issue. I suspect that the profile that leds to the error doesn't have the permission/visibility on that record type's object, check from Field level security on your object page if the profile has these kind of permissions.
Cristian W.Cristian W.
Indeed... that variable is null. I already tried to change the profile for that user in the System Admin, also I gave him the Role - GLOBAL(which is the highest). I still don't understand what is happening.
Cristian W.Cristian W.
08:31:44.0 (67663170)|VARIABLE_SCOPE_BEGIN|[104]|recordTypeId|Id|false|false
08:31:44.0 (67675387)|VARIABLE_ASSIGNMENT|[104]|recordTypeId|null
this.mInteractionReportRecordTypes|"Map of size 8 too large to display"|0x6aed5e76    - What this means?
 
paul diracpaul dirac
this.mInteractionReportRecordTypes|"Map of size 8 too large to display"|0x6aed5e76    - What this means?
That your map cannot be printed inline, that's not an error but a warning.
Are you able to run this from anonymous window? Since the current user in anonymous window is always Sys Admin, we will be sure that running as admin will work, just to exclude the that possibility. If so, then please paste some error logs here
Cristian W.Cristian W.

the logs from this user are here.... with the error....

 

34.0 APEX_CODE,FINEST;APEX_PROFILING,FINEST;CALLOUT,FINER;DB,FINEST;NBA,INFO;SYSTEM,FINE;VALIDATION,INFO;VISUALFORCE,FINER;WAVE,FINE;WORKFLOW,FINEST
08:31:44.0 (493657)|USER_INFO|[EXTERNAL]|00558000002WXOJ|manuel.mena@sig.biz|Eastern Standard Time|GMT-05:00
08:31:44.0 (562557)|EXECUTION_STARTED
08:31:44.0 (568688)|CODE_UNIT_STARTED|[EXTERNAL]|06658000003C6np|VF: /apex/VisitReportPage
08:31:44.0 (23394775)|VF_APEX_CALL_START|[EXTERNAL]|01p58000008Z7Rk|VisitReportPageExtension <init>|VisitReportPageExtension
08:31:44.0 (23456078)|SYSTEM_MODE_ENTER|true
08:31:44.0 (23816145)|VARIABLE_SCOPE_BEGIN|[23]|VisitReportPageExtension.ACCOUNT_URL_PARAM|String|false|true
08:31:44.0 (23832289)|VARIABLE_SCOPE_BEGIN|[18]|VisitReportPageExtension.DEFAULT_TASK_PRIORITY|String|false|true
08:31:44.0 (23840737)|VARIABLE_SCOPE_BEGIN|[17]|VisitReportPageExtension.DEFAULT_TASK_STATUS|String|false|true
08:31:44.0 (23848992)|VARIABLE_SCOPE_BEGIN|[20]|VisitReportPageExtension.EVENT_URL_PARAM|String|false|true
08:31:44.0 (23857150)|VARIABLE_SCOPE_BEGIN|[26]|VisitReportPageExtension.MEMO_REPORT_DEVELEOPER_NAME|String|false|true
08:31:44.0 (23865309)|VARIABLE_SCOPE_BEGIN|[24]|VisitReportPageExtension.OPPORTUNITY_URL_PARAM|String|false|true
08:31:44.0 (23873430)|VARIABLE_SCOPE_BEGIN|[22]|VisitReportPageExtension.RECORD_TYPE_URL_PARAM|String|false|true
08:31:44.0 (23881495)|VARIABLE_SCOPE_BEGIN|[21]|VisitReportPageExtension.RETURN_URL_PARAM|String|false|true
08:31:44.0 (24023780)|HEAP_ALLOCATE|[79]|Bytes:3
08:31:44.0 (24110620)|HEAP_ALLOCATE|[84]|Bytes:152
08:31:44.0 (24125071)|HEAP_ALLOCATE|[399]|Bytes:408
08:31:44.0 (24139300)|HEAP_ALLOCATE|[412]|Bytes:408
08:31:44.0 (24151513)|HEAP_ALLOCATE|[520]|Bytes:48
08:31:44.0 (24176921)|HEAP_ALLOCATE|[139]|Bytes:6
08:31:44.0 (24191924)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:66
08:31:44.0 (24216147)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:384
08:31:44.0 (24221971)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:165
08:31:44.0 (24227808)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:39
08:31:44.0 (24232635)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:9
08:31:44.0 (24313409)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.ACCOUNT_URL_PARAM|"AccountId"
08:31:44.0 (24321819)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:6
08:31:44.0 (24331186)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.DEFAULT_TASK_PRIORITY|"Normal"
08:31:44.0 (24335965)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:3
08:31:44.0 (24343905)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.DEFAULT_TASK_STATUS|"New"
08:31:44.0 (24349390)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:7
08:31:44.0 (24357841)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.EVENT_URL_PARAM|"EventID"
08:31:44.0 (24362632)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:9
08:31:44.0 (24370866)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.MEMO_REPORT_DEVELEOPER_NAME|"Call_Memo"
08:31:44.0 (24375601)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:13
08:31:44.0 (24384156)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.OPPORTUNITY_URL_PARAM|"OpportunityId"
08:31:44.0 (24388830)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:10
08:31:44.0 (24397017)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.RECORD_TYPE_URL_PARAM|"RecordType"
08:31:44.0 (24401568)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:6
08:31:44.0 (24409967)|VARIABLE_ASSIGNMENT|[EXTERNAL]|VisitReportPageExtension.RETURN_URL_PARAM|"retUrl"
08:31:44.0 (24437319)|METHOD_ENTRY|[5]|01p58000008Z7Rk|VisitReportPageExtension.VisitReportPageExtension()
08:31:44.0 (24444683)|STATEMENT_EXECUTE|[5]
08:31:44.0 (24449753)|STATEMENT_EXECUTE|[5]
08:31:44.0 (24476231)|HEAP_ALLOCATE|[52]|Bytes:5
08:31:44.0 (24496042)|HEAP_ALLOCATE|[58]|Bytes:5
08:31:44.0 (24504044)|HEAP_ALLOCATE|[66]|Bytes:7
08:31:44.0 (24527744)|SYSTEM_MODE_ENTER|false
08:31:44.0 (24537450)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:5
08:31:44.0 (24542560)|STATEMENT_EXECUTE|[516]
08:31:44.0 (24545301)|STATEMENT_EXECUTE|[540]
08:31:44.0 (24571072)|STATEMENT_EXECUTE|[560]
08:31:44.0 (24573527)|STATEMENT_EXECUTE|[611]
08:31:44.0 (24578769)|SYSTEM_MODE_EXIT|false
08:31:44.0 (24595822)|METHOD_EXIT|[5]|VisitReportPageExtension
08:31:44.0 (25703209)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:88
08:31:44.0 (25729307)|VARIABLE_SCOPE_BEGIN|[52]|this|VisitReportPageExtension|true|false
08:31:44.0 (25837672)|VARIABLE_ASSIGNMENT|[52]|this|{}|0x6aed5e76
08:31:44.0 (25846158)|VARIABLE_SCOPE_BEGIN|[52]|stdCtr|ApexPages.StandardController|true|false
08:31:44.0 (26167106)|VARIABLE_ASSIGNMENT|[52]|stdCtr|"StandardController [null]"|0x58c7cd74
08:31:44.0 (26187651)|SYSTEM_MODE_ENTER|false
08:31:44.0 (26197427)|HEAP_ALLOCATE|[10]|Bytes:5
08:31:44.0 (26204647)|STATEMENT_EXECUTE|[5]
08:31:44.0 (26209167)|HEAP_ALLOCATE|[10]|Bytes:5
08:31:44.0 (26213491)|STATEMENT_EXECUTE|[7]
08:31:44.0 (26216739)|STATEMENT_EXECUTE|[8]
08:31:44.0 (26219037)|STATEMENT_EXECUTE|[9]
08:31:44.0 (26221266)|STATEMENT_EXECUTE|[10]
08:31:44.0 (26236483)|HEAP_ALLOCATE|[10]|Bytes:4
08:31:44.0 (26279288)|VARIABLE_ASSIGNMENT|[10]|this.PicklistMap|{}|0x6aed5e76
08:31:44.0 (26285367)|STATEMENT_EXECUTE|[12]
08:31:44.0 (26287770)|STATEMENT_EXECUTE|[13]
08:31:44.0 (26289969)|STATEMENT_EXECUTE|[14]
08:31:44.0 (26292230)|STATEMENT_EXECUTE|[28]
08:31:44.0 (26294425)|STATEMENT_EXECUTE|[29]
08:31:44.0 (26303024)|HEAP_ALLOCATE|[29]|Bytes:4
08:31:44.0 (26336982)|VARIABLE_ASSIGNMENT|[29]|this.contactsCache|{}|0x6aed5e76
08:31:44.0 (26342850)|STATEMENT_EXECUTE|[30]
08:31:44.0 (26349757)|HEAP_ALLOCATE|[30]|Bytes:4
08:31:44.0 (26367743)|VARIABLE_ASSIGNMENT|[30]|this.userCache|{}|0x6aed5e76
08:31:44.0 (26373432)|STATEMENT_EXECUTE|[31]
08:31:44.0 (26380804)|HEAP_ALLOCATE|[31]|Bytes:4
08:31:44.0 (26445283)|SYSTEM_CONSTRUCTOR_ENTRY|[31]|<init>()
08:31:44.0 (26587729)|SYSTEM_CONSTRUCTOR_EXIT|[31]|<init>()
08:31:44.0 (26610194)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
08:31:44.0 (26624194)|VARIABLE_ASSIGNMENT|[31]|this.messages|[]|0x6aed5e76
08:31:44.0 (26630255)|STATEMENT_EXECUTE|[32]
08:31:44.0 (26638979)|VARIABLE_ASSIGNMENT|[32]|this.mInteractionReportRecordTypes|null|0x6aed5e76
08:31:44.0 (26644686)|STATEMENT_EXECUTE|[34]
08:31:44.0 (26651884)|HEAP_ALLOCATE|[34]|Bytes:5
08:31:44.0 (26661470)|VARIABLE_ASSIGNMENT|[34]|this.isFullReport|true|0x6aed5e76
08:31:44.0 (26667241)|STATEMENT_EXECUTE|[35]
08:31:44.0 (26674612)|VARIABLE_ASSIGNMENT|[35]|this.retURLParam|null|0x6aed5e76
08:31:44.0 (26679890)|STATEMENT_EXECUTE|[37]
08:31:44.0 (26682160)|STATEMENT_EXECUTE|[38]
08:31:44.0 (26684526)|STATEMENT_EXECUTE|[40]
08:31:44.0 (26686760)|STATEMENT_EXECUTE|[41]
08:31:44.0 (26688985)|STATEMENT_EXECUTE|[42]
08:31:44.0 (26691375)|STATEMENT_EXECUTE|[43]
08:31:44.0 (26693637)|STATEMENT_EXECUTE|[45]
08:31:44.0 (26704492)|HEAP_ALLOCATE|[35]|Bytes:6
08:31:44.0 (34351136)|STATEMENT_EXECUTE|[52]
08:31:44.0 (34358029)|STATEMENT_EXECUTE|[53]
08:31:44.0 (34376749)|HEAP_ALLOCATE|[53]|Bytes:4
08:31:44.0 (34432475)|SYSTEM_CONSTRUCTOR_ENTRY|[53]|<init>()
08:31:44.0 (34464552)|SYSTEM_CONSTRUCTOR_EXIT|[53]|<init>()
08:31:44.0 (34558400)|SYSTEM_METHOD_ENTRY|[53]|VisitReportPageExtension.__sfdc_customerParticipants(List<VisitReportPageExtension.CustomerParticipantWrapper>)
08:31:44.0 (34644143)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","isFullReport":true,"messages":"0x34f36430","PicklistMap":"0x52b9b3b7","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (34669590)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
08:31:44.0 (34681685)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|[]|0xeceb94d
08:31:44.0 (34699316)|VARIABLE_ASSIGNMENT|[41]|this.customerParticipants|[]|0x6aed5e76
08:31:44.0 (34734227)|SYSTEM_METHOD_EXIT|[53]|VisitReportPageExtension.__sfdc_customerParticipants(List<VisitReportPageExtension.CustomerParticipantWrapper>)
08:31:44.0 (34740206)|STATEMENT_EXECUTE|[54]
08:31:44.0 (34750246)|HEAP_ALLOCATE|[54]|Bytes:4
08:31:44.0 (34758341)|SYSTEM_CONSTRUCTOR_ENTRY|[54]|<init>()
08:31:44.0 (34771355)|SYSTEM_CONSTRUCTOR_EXIT|[54]|<init>()
08:31:44.0 (34786771)|SYSTEM_METHOD_ENTRY|[54]|VisitReportPageExtension.__sfdc_internalParticipants(List<VisitReportPageExtension.CustomerParticipantWrapper>)
08:31:44.0 (34832654)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","isFullReport":true,"messages":"0x34f36430","PicklistMap":"0x52b9b3b7","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (34848195)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
08:31:44.0 (34855673)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|[]|0x3e88a5da
08:31:44.0 (34868497)|VARIABLE_ASSIGNMENT|[42]|this.internalParticipants|[]|0x6aed5e76
08:31:44.0 (34877264)|SYSTEM_METHOD_EXIT|[54]|VisitReportPageExtension.__sfdc_internalParticipants(List<VisitReportPageExtension.CustomerParticipantWrapper>)
08:31:44.0 (34881894)|STATEMENT_EXECUTE|[56]
08:31:44.0 (34906679)|SYSTEM_METHOD_ENTRY|[56]|ApexPages.StandardController.getRecord()
08:31:44.0 (35180690)|HEAP_ALLOCATE|[56]|Bytes:4
08:31:44.0 (35198849)|SYSTEM_METHOD_EXIT|[56]|ApexPages.StandardController.getRecord()
08:31:44.0 (35224553)|SYSTEM_METHOD_ENTRY|[56]|VisitReportPageExtension.__sfdc_record(Visit_Report__c)
08:31:44.0 (35292909)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"messages":"0x34f36430","PicklistMap":"0x52b9b3b7","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (35310675)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|{}|0x3f4b7d19
08:31:44.0 (35325064)|VARIABLE_ASSIGNMENT|[45]|this.record|{}|0x6aed5e76
08:31:44.0 (35334557)|SYSTEM_METHOD_EXIT|[56]|VisitReportPageExtension.__sfdc_record(Visit_Report__c)
08:31:44.0 (35339399)|STATEMENT_EXECUTE|[57]
08:31:44.0 (35350443)|SYSTEM_METHOD_ENTRY|[57]|ApexPages.StandardController.getId()
08:31:44.0 (35381734)|SYSTEM_METHOD_EXIT|[57]|ApexPages.StandardController.getId()
08:31:44.0 (35398873)|SYSTEM_METHOD_ENTRY|[57]|VisitReportPageExtension.__sfdc_isNew(Boolean)
08:31:44.0 (35445262)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"messages":"0x34f36430","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (35461917)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|true
08:31:44.0 (35469738)|HEAP_ALLOCATE|[37]|Bytes:5
08:31:44.0 (35479325)|VARIABLE_ASSIGNMENT|[37]|this.isNew|true|0x6aed5e76
08:31:44.0 (35486956)|SYSTEM_METHOD_EXIT|[57]|VisitReportPageExtension.__sfdc_isNew(Boolean)
08:31:44.0 (35491010)|STATEMENT_EXECUTE|[59]
Cristian W.Cristian W.

Continue...

08:31:44.0 (35495415)|HEAP_ALLOCATE|[59]|Bytes:15
08:31:44.0 (36898763)|VARIABLE_SCOPE_BEGIN|[3]|RecordTypeService.recordTypesPerObject|Map<String,Map<Id,RecordType>>|true|true
08:31:44.0 (36924258)|HEAP_ALLOCATE|[59]|Bytes:1
08:31:44.0 (36948664)|METHOD_ENTRY|[1]|01p58000008Z7Rf|RecordTypeService.RecordTypeService()
08:31:44.0 (36954778)|STATEMENT_EXECUTE|[1]
08:31:44.0 (36958551)|STATEMENT_EXECUTE|[1]
08:31:44.0 (36967564)|HEAP_ALLOCATE|[3]|Bytes:5
08:31:44.0 (36972653)|STATEMENT_EXECUTE|[3]
08:31:44.0 (36991397)|HEAP_ALLOCATE|[3]|Bytes:4
08:31:44.0 (37075100)|VARIABLE_ASSIGNMENT|[3]|RecordTypeService.recordTypesPerObject|{}|0x2a22010a
08:31:44.0 (37090051)|METHOD_EXIT|[1]|RecordTypeService
08:31:44.0 (37111031)|METHOD_ENTRY|[59]|01p58000008Z7Rf|RecordTypeService.getRecordTypesForObject(String)
08:31:44.0 (37135814)|VARIABLE_SCOPE_BEGIN|[5]|objectName|String|false|false
08:31:44.0 (37150303)|VARIABLE_ASSIGNMENT|[5]|objectName|"Visit_Report__c"
08:31:44.0 (37161164)|HEAP_ALLOCATE|[6]|Bytes:5
08:31:44.0 (37165837)|STATEMENT_EXECUTE|[5]
08:31:44.0 (37168173)|STATEMENT_EXECUTE|[6]
08:31:44.0 (37201095)|SYSTEM_METHOD_ENTRY|[6]|Map<String,Map<Id,RecordType>>.get(Object)
08:31:44.0 (37235605)|SYSTEM_METHOD_EXIT|[6]|Map<String,Map<Id,RecordType>>.get(Object)
08:31:44.0 (37242735)|VARIABLE_SCOPE_BEGIN|[6]|recordTypes|Map<Id,RecordType>|true|false
08:31:44.0 (37254494)|VARIABLE_ASSIGNMENT|[6]|recordTypes|null|
08:31:44.0 (37259992)|STATEMENT_EXECUTE|[7]
08:31:44.0 (37262337)|STATEMENT_EXECUTE|[8]
08:31:44.0 (38689112)|HEAP_ALLOCATE|[8]|Bytes:13
08:31:44.0 (38751568)|METHOD_ENTRY|[5]|01p58000007JayN|RecordTypeSelector.RecordTypeSelector()
08:31:44.0 (38759993)|STATEMENT_EXECUTE|[5]
08:31:44.0 (38765163)|STATEMENT_EXECUTE|[5]
08:31:44.0 (38774087)|HEAP_ALLOCATE|[8]|Bytes:5
08:31:44.0 (38785569)|METHOD_EXIT|[5]|RecordTypeSelector
08:31:44.0 (38808886)|METHOD_ENTRY|[8]|01p58000007JayN|RecordTypeSelector.getRecordTypesForObject(String)
08:31:44.0 (38834531)|VARIABLE_SCOPE_BEGIN|[18]|objectName|String|false|false
08:31:44.0 (38852498)|VARIABLE_ASSIGNMENT|[18]|objectName|"Visit_Report__c"
08:31:44.0 (38862136)|HEAP_ALLOCATE|[19]|Bytes:5
08:31:44.0 (38867663)|STATEMENT_EXECUTE|[18]
08:31:44.0 (38908886)|SYSTEM_METHOD_ENTRY|[19]|String.isBlank(String)
08:31:44.0 (38949923)|SYSTEM_METHOD_EXIT|[19]|String.isBlank(String)
08:31:44.0 (38957628)|STATEMENT_EXECUTE|[19]
08:31:44.0 (38960369)|STATEMENT_EXECUTE|[20]
08:31:44.0 (38978115)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (38984796)|HEAP_ALLOCATE|[20]|Bytes:75
08:31:44.0 (38995874)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (39006335)|HEAP_ALLOCATE|[20]|Bytes:7
08:31:44.0 (39372800)|SOQL_EXECUTE_BEGIN|[20]|Aggregations:0|SELECT Id, Name, DeveloperName FROM RecordType WHERE sObjectType = :tmpVar1
08:31:44.0 (39391371)|LIMIT_USAGE|[20]|SOQL|1|100
08:31:44.0 (39414330)|LIMIT_USAGE|[20]|AGGS|0|300
08:31:44.0 (62097100)|SOQL_EXECUTE_END|[20]|Rows:8
08:31:44.0 (62126427)|LIMIT_USAGE|[20]|SOQL_ROWS|8|50000
08:31:44.0 (62154657)|HEAP_ALLOCATE|[20]|Bytes:36
08:31:44.0 (62193669)|HEAP_ALLOCATE|[20]|Bytes:687
08:31:44.0 (62278029)|HEAP_ALLOCATE|[20]|Bytes:36
08:31:44.0 (62356490)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62372149)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62382206)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62390212)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62396549)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62404774)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62411959)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62419793)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62426189)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62433875)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62440040)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62447646)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62454198)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62461954)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62468427)|HEAP_ALLOCATE|[20]|Bytes:16
08:31:44.0 (62476707)|HEAP_ALLOCATE|[20]|Bytes:4
08:31:44.0 (62503783)|METHOD_EXIT|[8]|01p58000007JayN|RecordTypeSelector.getRecordTypesForObject(String)
08:31:44.0 (62631377)|VARIABLE_ASSIGNMENT|[8]|recordTypes|"Map of size 8 too large to display"|0x1dfeeca5
08:31:44.0 (62645263)|STATEMENT_EXECUTE|[11]
08:31:44.0 (62649106)|STATEMENT_EXECUTE|[12]
08:31:44.0 (62709204)|SYSTEM_METHOD_ENTRY|[12]|Map<String,Map<Id,RecordType>>.put(Object, Object)
paul diracpaul dirac
Just a tip, consider to blur your sensitive data ;)
Cristian W.Cristian W.

yea.. you are right...

 

This is the continue...

 

08:31:44.0 (62752885)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:-4
08:31:44.0 (62768287)|SYSTEM_METHOD_EXIT|[12]|Map<String,Map<Id,RecordType>>.put(Object, Object)
08:31:44.0 (62774636)|STATEMENT_EXECUTE|[15]
08:31:44.0 (62785313)|METHOD_EXIT|[59]|01p58000008Z7Rf|RecordTypeService.getRecordTypesForObject(String)
08:31:44.0 (62819522)|VARIABLE_ASSIGNMENT|[59]|this.mInteractionReportRecordTypes|"Map of size 8 too large to display"|0x6aed5e76
08:31:44.0 (62825378)|STATEMENT_EXECUTE|[60]
08:31:44.0 (62893171)|METHOD_ENTRY|[60]|01p58000008Z7Rk|VisitReportPageExtension.loadParams()
08:31:44.0 (62928910)|VARIABLE_SCOPE_BEGIN|[88]|this|VisitReportPageExtension|true|false
08:31:44.0 (63043286)|VARIABLE_ASSIGNMENT|[88]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (63072680)|HEAP_ALLOCATE|[89]|Bytes:5
08:31:44.0 (63081315)|STATEMENT_EXECUTE|[88]
08:31:44.0 (63085958)|STATEMENT_EXECUTE|[89]
08:31:44.0 (63141750)|SYSTEM_METHOD_ENTRY|[89]|ApexPages.currentPage()
08:31:44.0 (63182086)|HEAP_ALLOCATE|[89]|Bytes:60
08:31:44.0 (63194572)|SYSTEM_METHOD_EXIT|[89]|ApexPages.currentPage()
08:31:44.0 (63215559)|SYSTEM_METHOD_ENTRY|[89]|System.PageReference.getParameters()
08:31:44.0 (63250760)|HEAP_ALLOCATE|[89]|Bytes:35
08:31:44.0 (63270498)|SYSTEM_METHOD_EXIT|[89]|System.PageReference.getParameters()
08:31:44.0 (63278650)|VARIABLE_SCOPE_BEGIN|[89]|mGetParams|Map<String,String>|true|false
08:31:44.0 (63302625)|VARIABLE_ASSIGNMENT|[89]|mGetParams|{"retURL":"/a00/o","save_new":"1","sfdc.override":"1"}|0x6614b096
08:31:44.0 (63309067)|STATEMENT_EXECUTE|[90]
08:31:44.0 (63338687)|SYSTEM_METHOD_ENTRY|[90]|Map<String,String>.get(Object)
08:31:44.0 (63369011)|SYSTEM_METHOD_EXIT|[90]|Map<String,String>.get(Object)
08:31:44.0 (63389433)|SYSTEM_METHOD_ENTRY|[90]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (63485577)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (63509694)|SYSTEM_METHOD_EXIT|[90]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (63795135)|HEAP_ALLOCATE|[90]|Bytes:-4
08:31:44.0 (63836555)|VARIABLE_ASSIGNMENT|[90]|this.EventID__c|null|0x3f4b7d19
08:31:44.0 (63848651)|STATEMENT_EXECUTE|[91]
08:31:44.0 (63868080)|SYSTEM_METHOD_ENTRY|[91]|ApexPages.currentPage()
08:31:44.0 (63899108)|HEAP_ALLOCATE|[91]|Bytes:60
08:31:44.0 (63910453)|SYSTEM_METHOD_EXIT|[91]|ApexPages.currentPage()
08:31:44.0 (63927980)|SYSTEM_METHOD_ENTRY|[91]|System.PageReference.getParameters()
08:31:44.0 (63952734)|HEAP_ALLOCATE|[91]|Bytes:35
08:31:44.0 (63969500)|SYSTEM_METHOD_EXIT|[91]|System.PageReference.getParameters()
08:31:44.0 (63994176)|SYSTEM_METHOD_ENTRY|[91]|Map<String,String>.get(Object)
08:31:44.0 (64006082)|SYSTEM_METHOD_EXIT|[91]|Map<String,String>.get(Object)
08:31:44.0 (64027788)|VARIABLE_ASSIGNMENT|[91]|this.retURLParam|"/a00/o"|0x6aed5e76
08:31:44.0 (64039164)|SYSTEM_METHOD_ENTRY|[94]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (64138743)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (64159885)|SYSTEM_METHOD_EXIT|[94]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (64172077)|STATEMENT_EXECUTE|[94]
08:31:44.0 (64194147)|SYSTEM_METHOD_ENTRY|[95]|Map<String,String>.containsKey(Object)
08:31:44.0 (64224477)|SYSTEM_METHOD_EXIT|[95]|Map<String,String>.containsKey(Object)
08:31:44.0 (64233927)|STATEMENT_EXECUTE|[95]
08:31:44.0 (64248151)|SYSTEM_METHOD_ENTRY|[99]|Map<String,String>.containsKey(Object)
08:31:44.0 (64266121)|SYSTEM_METHOD_EXIT|[99]|Map<String,String>.containsKey(Object)
08:31:44.0 (64272921)|STATEMENT_EXECUTE|[99]
08:31:44.0 (64284723)|METHOD_EXIT|[60]|01p58000008Z7Rk|VisitReportPageExtension.loadParams()
08:31:44.0 (64292975)|STATEMENT_EXECUTE|[62]
08:31:44.0 (64315116)|METHOD_ENTRY|[62]|01p58000008Z7Rk|VisitReportPageExtension.loadInteractionRecord()
08:31:44.0 (64339717)|VARIABLE_SCOPE_BEGIN|[312]|this|VisitReportPageExtension|true|false
08:31:44.0 (64437475)|VARIABLE_ASSIGNMENT|[312]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (64462587)|HEAP_ALLOCATE|[313]|Bytes:5
08:31:44.0 (64470013)|STATEMENT_EXECUTE|[312]
08:31:44.0 (64473130)|STATEMENT_EXECUTE|[313]
08:31:44.0 (64492203)|HEAP_ALLOCATE|[313]|Bytes:4
08:31:44.0 (64560834)|SYSTEM_CONSTRUCTOR_ENTRY|[313]|<init>()
08:31:44.0 (64587438)|SYSTEM_CONSTRUCTOR_EXIT|[313]|<init>()
08:31:44.0 (64611805)|SYSTEM_METHOD_ENTRY|[313]|VisitReportPageExtension.__sfdc_actionItems(List<VisitReportPageExtension.ActionItemWrapper>)
08:31:44.0 (64685806)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (64721717)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
08:31:44.0 (64735873)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|[]|0x3e186659
08:31:44.0 (64756567)|VARIABLE_ASSIGNMENT|[40]|this.actionItems|[]|0x6aed5e76
08:31:44.0 (64771958)|SYSTEM_METHOD_EXIT|[313]|VisitReportPageExtension.__sfdc_actionItems(List<VisitReportPageExtension.ActionItemWrapper>)
08:31:44.0 (64779426)|STATEMENT_EXECUTE|[314]
08:31:44.0 (64795006)|HEAP_ALLOCATE|[314]|Bytes:4
08:31:44.0 (64807221)|SYSTEM_CONSTRUCTOR_ENTRY|[314]|<init>()
08:31:44.0 (64824236)|SYSTEM_CONSTRUCTOR_EXIT|[314]|<init>()
08:31:44.0 (64836979)|SYSTEM_METHOD_ENTRY|[314]|VisitReportPageExtension.__sfdc_customerParticipants(List<VisitReportPageExtension.CustomerParticipantWrapper>)
08:31:44.0 (64914359)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0xeceb94d","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (64939112)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
08:31:44.0 (64949554)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|[]|0x1a93be54
08:31:44.0 (64966424)|VARIABLE_ASSIGNMENT|[41]|this.customerParticipants|[]|0x6aed5e76
08:31:44.0 (64977907)|SYSTEM_METHOD_EXIT|[314]|VisitReportPageExtension.__sfdc_customerParticipants(List<VisitReportPageExtension.CustomerParticipantWrapper>)
08:31:44.0 (64995056)|SYSTEM_METHOD_ENTRY|[316]|VisitReportPageExtension.__sfdc_isNew()
08:31:44.0 (65069248)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (65176804)|SYSTEM_METHOD_EXIT|[316]|VisitReportPageExtension.__sfdc_isNew()
08:31:44.0 (65189507)|STATEMENT_EXECUTE|[328]
08:31:44.0 (65193161)|STATEMENT_EXECUTE|[329]
08:31:44.0 (65213364)|METHOD_ENTRY|[329]|01p58000008Z7Rk|VisitReportPageExtension.loadEvent()
08:31:44.0 (65246733)|VARIABLE_SCOPE_BEGIN|[339]|this|VisitReportPageExtension|true|false
08:31:44.0 (65323667)|VARIABLE_ASSIGNMENT|[339]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (65347055)|HEAP_ALLOCATE|[341]|Bytes:5
08:31:44.0 (65355618)|STATEMENT_EXECUTE|[339]
08:31:44.0 (65368432)|SYSTEM_METHOD_ENTRY|[341]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (65444590)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (65462006)|SYSTEM_METHOD_EXIT|[341]|VisitReportPageExtension.__sfdc_record()
Cristian W.Cristian W.

and last part....

 

08:31:44.0 (65472885)|STATEMENT_EXECUTE|[341]
08:31:44.0 (65476209)|STATEMENT_EXECUTE|[342]
08:31:44.0 (65485028)|METHOD_EXIT|[329]|01p58000008Z7Rk|VisitReportPageExtension.loadEvent()
08:31:44.0 (65497235)|METHOD_EXIT|[62]|01p58000008Z7Rk|VisitReportPageExtension.loadInteractionRecord()
08:31:44.0 (65504765)|STATEMENT_EXECUTE|[63]
08:31:44.0 (65526381)|METHOD_ENTRY|[63]|01p58000008Z7Rk|VisitReportPageExtension.clearContactHandler()
08:31:44.0 (65551488)|VARIABLE_SCOPE_BEGIN|[308]|this|VisitReportPageExtension|true|false
08:31:44.0 (65620154)|VARIABLE_ASSIGNMENT|[308]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (65638482)|HEAP_ALLOCATE|[309]|Bytes:5
08:31:44.0 (65645376)|STATEMENT_EXECUTE|[308]
08:31:44.0 (65648409)|STATEMENT_EXECUTE|[309]
08:31:44.0 (65677623)|HEAP_ALLOCATE|[309]|Bytes:4
08:31:44.0 (65854775)|HEAP_ALLOCATE|[309]|Bytes:97
08:31:44.0 (65878369)|SYSTEM_METHOD_ENTRY|[1]|UserInfo.UserInfo()
08:31:44.0 (65884585)|STATEMENT_EXECUTE|[1]
08:31:44.0 (65894756)|SYSTEM_METHOD_EXIT|[1]|UserInfo
08:31:44.0 (65913474)|METHOD_ENTRY|[309]||System.UserInfo.getUserId()
08:31:44.0 (65956388)|METHOD_EXIT|[309]||System.UserInfo.getUserId()
08:31:44.0 (65977040)|HEAP_ALLOCATE|[309]|Bytes:4
08:31:44.0 (66551251)|VARIABLE_ASSIGNMENT|[309]|this.OwnerId|"00558000002WXOJAA4"|0x7cee0619
08:31:44.0 (66586779)|SYSTEM_METHOD_ENTRY|[309]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (66680433)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (66699558)|SYSTEM_METHOD_EXIT|[309]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (66787703)|VARIABLE_ASSIGNMENT|[309]|this.AccountId|null|0x7cee0619
08:31:44.0 (66899985)|SYSTEM_METHOD_ENTRY|[309]|VisitReportPageExtension.__sfdc_contactHandler(Contact)
08:31:44.0 (66994734)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (67025979)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|{"OwnerId":"00558000002WXOJAA4"}|0x7cee0619
08:31:44.0 (67048199)|VARIABLE_ASSIGNMENT|[43]|this.contactHandler|{"OwnerId":"00558000002WXOJAA4"}|0x6aed5e76
08:31:44.0 (67062147)|SYSTEM_METHOD_EXIT|[309]|VisitReportPageExtension.__sfdc_contactHandler(Contact)
08:31:44.0 (67075340)|METHOD_EXIT|[63]|01p58000008Z7Rk|VisitReportPageExtension.clearContactHandler()
08:31:44.0 (67083635)|STATEMENT_EXECUTE|[64]
08:31:44.0 (67098633)|METHOD_ENTRY|[64]|01p58000008Z7Rk|VisitReportPageExtension.closeCreateContactPopup()
08:31:44.0 (67130947)|VARIABLE_SCOPE_BEGIN|[287]|this|VisitReportPageExtension|true|false
08:31:44.0 (67208271)|VARIABLE_ASSIGNMENT|[287]|this|{"actionItems":"0x3e186659","contactHandler":"0x7cee0619","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (67230062)|HEAP_ALLOCATE|[288]|Bytes:5
08:31:44.0 (67237513)|STATEMENT_EXECUTE|[287]
08:31:44.0 (67241093)|STATEMENT_EXECUTE|[288]
08:31:44.0 (67262661)|SYSTEM_METHOD_ENTRY|[288]|VisitReportPageExtension.__sfdc_showCreateContactPopup(Boolean)
08:31:44.0 (67346883)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactHandler":"0x7cee0619","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (67369896)|VARIABLE_ASSIGNMENT|[EXTERNAL]|value|false
08:31:44.0 (67379854)|HEAP_ALLOCATE|[38]|Bytes:5
08:31:44.0 (67395728)|VARIABLE_ASSIGNMENT|[38]|this.showCreateContactPopup|false|0x6aed5e76
08:31:44.0 (67408412)|SYSTEM_METHOD_EXIT|[288]|VisitReportPageExtension.__sfdc_showCreateContactPopup(Boolean)
08:31:44.0 (67420482)|METHOD_EXIT|[64]|01p58000008Z7Rk|VisitReportPageExtension.closeCreateContactPopup()
08:31:44.0 (67427902)|STATEMENT_EXECUTE|[65]
08:31:44.0 (67436389)|SYSTEM_METHOD_ENTRY|[65]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (67523888)|VARIABLE_ASSIGNMENT|[EXTERNAL]|this|{"actionItems":"0x3e186659","contactHandler":"0x7cee0619","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","showCreateContactPopup":false,"userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (67542951)|SYSTEM_METHOD_EXIT|[65]|VisitReportPageExtension.__sfdc_record()
08:31:44.0 (67570426)|METHOD_ENTRY|[65]|01p58000008Z7Rk|VisitReportPageExtension.setIsFullReport(Id)
08:31:44.0 (67580891)|VARIABLE_SCOPE_BEGIN|[104]|this|VisitReportPageExtension|true|false
08:31:44.0 (67649650)|VARIABLE_ASSIGNMENT|[104]|this|{"actionItems":"0x3e186659","contactHandler":"0x7cee0619","contactsCache":"0x346d9225","customerParticipants":"0x1a93be54","internalParticipants":"0x3e88a5da","isFullReport":true,"isNew":true,"messages":"0x34f36430","mInteractionReportRecordTypes":"0x1dfeeca5","PicklistMap":"0x52b9b3b7","record":"0x3f4b7d19","retURLParam":"/a00/o","showCreateContactPopup":false,"userCache":"0x566af51f"}|0x6aed5e76
08:31:44.0 (67663170)|VARIABLE_SCOPE_BEGIN|[104]|recordTypeId|Id|false|false
08:31:44.0 (67675387)|VARIABLE_ASSIGNMENT|[104]|recordTypeId|null
08:31:44.0 (67688278)|HEAP_ALLOCATE|[105]|Bytes:5
08:31:44.0 (67695115)|STATEMENT_EXECUTE|[104]
08:31:44.0 (67698584)|STATEMENT_EXECUTE|[105]
08:31:44.0 (67734027)|SYSTEM_METHOD_ENTRY|[105]|Map<Id,RecordType>.get(Object)
08:31:44.0 (67762092)|SYSTEM_METHOD_EXIT|[105]|Map<Id,RecordType>.get(Object)
08:31:44.0 (67847477)|EXCEPTION_THROWN|[105]|System.NullPointerException: Attempt to de-reference a null object
08:31:44.0 (68066022)|HEAP_ALLOCATE|[105]|Bytes:41
08:31:44.0 (68095553)|METHOD_EXIT|[65]|01p58000008Z7Rk|VisitReportPageExtension.setIsFullReport(Id)
08:31:44.0 (68108795)|SYSTEM_MODE_EXIT|false
08:31:44.0 (68370414)|FATAL_ERROR|System.NullPointerException: Attempt to de-reference a null object

Class.VisitReportPageExtension.setIsFullReport: line 105, column 1
Class.VisitReportPageExtension.<init>: line 65, column 1
08:31:44.0 (68553893)|VF_APEX_CALL_END|VisitReportPageExtension <init>|VisitReportPageExtension
08:31:44.199 (199988031)|CUMULATIVE_LIMIT_USAGE
08:31:44.199 (199988031)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 1 out of 100
  Number of query rows: 8 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

08:31:44.199 (199988031)|TOTAL_EMAIL_RECIPIENTS_QUEUED|0
08:31:44.199 (199988031)|STATIC_VARIABLE_LIST|
  int:BYTES:0
  int:BYTES:0
  byte[]:DigitOnes:0
  byte[]:DigitTens:0
  Boolean:FALSE:0
  int:MAX_EXPONENT:0
  double:MAX_VALUE:0
  int:MAX_VALUE:0
  int:MIN_EXPONENT:0
  double:MIN_NORMAL:0
  double:MIN_VALUE:0
  int:MIN_VALUE:0
  double:NEGATIVE_INFINITY:0
  double:NaN:0
  double:POSITIVE_INFINITY:0
  int:SIZE:0
  int:SIZE:0
  Boolean:TRUE:0
  String:__sfdcInnerTypes:0
  String:__sfdcProperties:0
  String:_sfdcAdditionalCodeLocations:0
  String:_sfdcAdditionalCodeLocations:0
  String:_sfdcAdditionalCodeLocations:0
  String:_sfdcAdditionalCodeLocations:0
  String:_sfdcAdditionalCodeLocations:0
  String:_sfdcSuppressedCodeLocations:0
  String:_static_ACCOUNT_URL_PARAM:0
  String:_static_DEFAULT_TASK_PRIORITY:0
  String:_static_DEFAULT_TASK_STATUS:0
  String:_static_EVENT_URL_PARAM:0
  String:_static_MEMO_REPORT_DEVELEOPER_NAME:0
  String:_static_OPPORTUNITY_URL_PARAM:0
  String:_static_RECORD_TYPE_URL_PARAM:0
  String:_static_RETURN_URL_PARAM:0
  Map<String,Map<Id,RecordType>>:_static_recordTypesPerObject:0
  char[]:digits:0
  long:serialVersionUID:0
  long:serialVersionUID:0
  long:serialVersionUID:0
  int[]:sizeTable:0

08:31:44.199 (199988031)|CUMULATIVE_LIMIT_USAGE_END

08:31:44.0 (200757983)|CODE_UNIT_FINISHED|VF: /apex/VisitReportPage
08:31:44.0 (202599478)|EXECUTION_FINISHED
08:31:44.204 (204924412)|CUMULATIVE_PROFILING_BEGIN
08:31:44.204 (204924412)|CUMULATIVE_PROFILING|SOQL operations|
Class.RecordTypeSelector.getRecordTypesForObject: line 20, column 1: [SELECT Id, Name, DeveloperName FROM RecordType WHERE sObjectType=:objectName]: executed 1 time in 23 ms

08:31:44.204 (204924412)|CUMULATIVE_PROFILING|No profiling information for SOSL operations
08:31:44.204 (204924412)|CUMULATIVE_PROFILING|No profiling information for DML operations
08:31:44.204 (204924412)|CUMULATIVE_PROFILING|method invocations|
External entry point: public void <init>(ApexPages.StandardController): executed 1 time in 44 ms
Class.VisitReportPageExtension.<init>: line 59, column 1: public static Map<Id,RecordType> getRecordTypesForObject(String): executed 1 time in 25 ms
Class.RecordTypeService.getRecordTypesForObject: line 8, column 1: public static Map<Id,RecordType> getRecordTypesForObject(String): executed 1 time in 23 ms
Class.VisitReportPageExtension.<init>: line 63, column 1: private void clearContactHandler(): executed 1 time in 2 ms
Class.VisitReportPageExtension.<init>: line 65, column 1: public Visit_Report__c __sfdc_record(): executed 2 times in 1 ms
Class.VisitReportPageExtension.<init>: line 54, column 1: global public List<VisitReportPageExtension.CustomerParticipantWrapper>(): executed 2 times in 1 ms
Class.VisitReportPageExtension.<init>: line 60, column 1: private void loadParams(): executed 1 time in 1 ms
Class.VisitReportPageExtension.<init>: line 62, column 1: private void loadInteractionRecord(): executed 1 time in 1 ms
Class.RecordTypeService.getRecordTypesForObject: line 6, column 1: global public Object get(Object): executed 1 time in 0 ms
Class.RecordTypeService.getRecordTypesForObject: line 12, column 1: global public Object put(Object, Object): executed 1 time in 0 ms
Class.VisitReportPageExtension.<init>: line 64, column 1: public void closeCreateContactPopup(): executed 1 time in 0 ms

08:31:44.204 (204924412)|CUMULATIVE_PROFILING_END
SRKSRK
replace your setIsFullReport with this and see if you still getting error

 private void setIsFullReport(Id recordTypeId) {
     if(mInteractionReportRecordTypes.containskey(recordTypeId))
        isFullReport = (mInteractionReportRecordTypes.get(recordTypeId).DeveloperName != MEMO_REPORT_DEVELEOPER_NAME);
     else
      isFullReport = null;
    }
 
This was selected as the best answer
Cristian W.Cristian W.
Thanks SRK! It works man! I'm so happy. Can you please explain what was the problem and how did  you fix it? I'm not a developer but I want to learn nonetheless.
SRKSRK

if a key is not present in Map and without checking containskey if code directly try to get the value from map it will give null pointer exception
so it's awlays good pratice to use map.containskey before you do map.get

Also map key is case sensative so check containskey  always help before doing get from Map

It will be greate if you can you mark asnwer as sovled , i will help keep community clean