cancel
Showing results for 
Search instead for 
Did you mean: 

Null Pointer Exception while Retrieving Records using Java API

Former Member
0 Kudos

Hi,

I am using the Class RetrieveLimitedRecords, to retrieve he records from the main table.

While using this class I am getting an error Null Pointer Exception, when there are no records matching the search criteriea.

Could anybody tell me how to ignore this error.

Thanks,

Priya.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The issue is solved.

Thanks.

Former Member
0 Kudos

Hi Priya

put the statement which throws the exception in try catch and raise your own exception if you want in catch for no records found

Thanks

Ninad

Former Member
0 Kudos

Hi,

Thanks for the reply.

There is no any class which automatically handles, so we should handle exceptions individually.

Thanks,

Priya.