on ‎2018 Feb 07 8:20 AM
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
Request clarification before answering.
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have added added the vehicle model.here so in order to save..getModelService().save(vehicleModel); here null pointer exception in save model method,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you mention how are you creating and saving values in model, also you can debug which value is coming as null ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.