-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BootNotificationRequest::setChargeBoxSerialNumber(null) throws NullPointerException #221
Comments
Created a branch with the test here: https://github.com/ChargeTimeEU/Java-OCA-OCPP/compare/master...bantu:Java-OCA-OCPP:test-for-github-221?expand=1 |
Hi @bantu, Your right, that makes no sense. Thanks for pointing it out. If you make a PR, I'll merge it ;) - Thomas |
This also affects the other optional fields in that class like chargePointSerial;Number, firmwareVersion, iccid, imsi, meterSerialNumber and meterType. |
Yes. Thank you. I was about to mention that. Does it also affect other classes? |
I didn't check all but for some classes they do a check with something like the following. I saw some code which probably have the same issue
|
@jmluy I'll focus on BootNotificationRequest. |
See #223 |
I am not sure whether this is the expected behavior, I do not believe it is.
throws a
NullPointerException
due to.length()
inbeing called on a
null
String
.Note that
chargeBoxSerialNumber
is optional inBootNotificationRequest
.Here's a test for reproduction:
The text was updated successfully, but these errors were encountered: