Attempt to de-reference a null object error

Last published at: March 14th, 2025

Problem:

An error occurs: “Attempt to de-reference a null object”. 

This can happen in several situations, for example when creating a new job, or when running or debugging a flow.

Answer:

This error indicates that an Object or Field is not available anymore in the Org, but is still configured somewhere in the Record Validation Setup or Flow. 

A situation that occurs relatively often is that in RV Setup an Address validation mapping refers to a field that does not exist anymore.

To find and solve the cause of the error:

  • In RV Setup, open the Object where the error occurs. 
    Go to the Address, Email, Phone and Direct Validate tabs, and check whether the mapped fields in the different validations all still exist. 
    Also make sure there is no empty field reference there in mandatory fields.
  • In the case of Flows, open the Flow configuration and check that all referenced fields and objects still exist.

If this doesn't solve the problem, don't hesitate to contact Plauti Support! We're glad to help.