SwitchEV / RISE-V2G

The only fully-featured reference implementation of the Vehicle-2-Grid communication interface ISO 15118
MIT License
219 stars 92 forks source link

Fix typo that results in a null pointer when ChargingStatusRes hasn't populate the ReceiptRequired field #34

Closed jessekerkhoven closed 5 years ago

jessekerkhoven commented 5 years ago

The old implementation uses a bitwise comparison that will validate both statements and will result in a null pointer. The fix will do a logic comparison that will return if the first statement is null

See also cc26d2a23955a2b4e0910cc265ef5fe1fbac5e6c