function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Strange null pointer issue!

hi all,


What i am doing is :


string temp = string.valueof(wpl.start);
string tempd = temp.remove('start:[datetimed=');


where wpl is my wraper list object and start is my object inside wrapper.


its working for the first line but when i add second line it gives me null pointer. but my temp var is not null as i have value displaying in visualforce from it??

Shiv ShankarShiv Shankar

if wpl is a wraper list object than your code should be like this


string temp = string.valueof(wpl[0].start);
string tempd = temp.remove('start:[datetimed=');



Otherwise i have 2 Query

1.what is the start data type in to your wrapper class.

2. To go into the depth please post your code