You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do a delete by sending a local list using a differential update and it's causing an NullPointerException.
Based on the OCPP 1.6 document on section 7.1, when you want to delete on a differential update, you can do it by not setting the IdTagInfo. Setting the IdTagInfo means it's for add/edit. NPE occurs because of the call to IdTagInfo.validate() in AuthorizationData.validate().
I think it should either allow null on the validate for AuthorizationData like return ModelUtil.validate(idTag, 20) && (idTagInfo == null || idTagInfo.validate());
or validate() in SendLocalList should check update type and allow null IdTagInfo or call AuthorizationData.validate.
The text was updated successfully, but these errors were encountered:
I'm trying to do a delete by sending a local list using a differential update and it's causing an NullPointerException.
Based on the OCPP 1.6 document on section 7.1, when you want to delete on a differential update, you can do it by not setting the IdTagInfo. Setting the IdTagInfo means it's for add/edit. NPE occurs because of the call to IdTagInfo.validate() in AuthorizationData.validate().
I think it should either allow null on the validate for AuthorizationData like
return ModelUtil.validate(idTag, 20) && (idTagInfo == null || idTagInfo.validate());
or validate() in SendLocalList should check update type and allow null IdTagInfo or call AuthorizationData.validate.
The text was updated successfully, but these errors were encountered: