in custom code there is some null object, on that, you invoke some method
Please share your custom code