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
pavan Kumar.vpavan Kumar.v 

System.null pointer exception argument cannot be null

Hi all,
Im getting a null pointer exception butwhen when i debug it everyone argument has a value but still it is throwing null pointer exxeption . can anyone please guide me User-added image
Best Answer chosen by pavan Kumar.v
Abdul KhatriAbdul Khatri
Hi pavan,

You didn't mentioned which line you are getting the null pointer. From your code the only place I can think of you may be receiving the issue where you are checking this
if(feedCommentRecord.CommentBody.Contains(.............

try to change that line to this
if(feedCommentRecord.CommentBody != null){
	if(feedCommentRecord.CommentBody.Contains(.............
}
Let me know if this helped
 

All Answers

Abdul KhatriAbdul Khatri
Hi pavan,

You didn't mentioned which line you are getting the null pointer. From your code the only place I can think of you may be receiving the issue where you are checking this
if(feedCommentRecord.CommentBody.Contains(.............

try to change that line to this
if(feedCommentRecord.CommentBody != null){
	if(feedCommentRecord.CommentBody.Contains(.............
}
Let me know if this helped
 
This was selected as the best answer
pavan Kumar.vpavan Kumar.v
Hi @abdul khatri, Many thanks for the reply.
yes i should have used null check before comparing.
many thanks for the advise.
mazterize mazterizemazterize mazterize
This modeler has a full rundown of highlights and can make anything you can envision. The product is expected for use with convoluted CAD programs. Your work and different organizations can be put away utilizing this device, which allows you to get the ideal arrangements. This program is intended for fledgling and expert  SketchUp Pro Download clients, offering many drawing and movement devices. Displaying in 3D should be possible. It is useful engineering for drawing.