cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Null pointer exception on model.save

Former Member
0 Likes
547

I am trying to save model its getting null pointer exception here. Although the attribute values are able to get and set. There are total 4 values that has been set and are saved. Any help.

Regards, Rakesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Hi Rakesh,

There are two Possibilities for this , 1)Debug the code and check the modelService , if it is not injected modelSerivce will be null value,So when saving the model will get the Null pointer exception("null.save(vehicleModel )").

2) This issue may come from the Interceptor.check ,is there any interceptor configured for this vehicleModel and if it is there check logic where is the possibility for getting the null pointer exception .

Former Member
0 Likes

We have added added the vehicle model.here so in order to save..getModelService().save(vehicleModel); here null pointer exception in save model method,

0 Likes

Can you mention how are you creating and saving values in model, also you can debug which value is coming as null ?