how to handle exception object reference not set to an object?
If you are passing a null value to the activity, you will get that error. Make sure you are passing the not null values as parameters
Before passing the value check the value is null or not
Based on results you can follow further