Skip to content

Commit

Permalink
Merge pull request #66 from IZIVIA/fix/EVSIM/evseType-fix
Browse files Browse the repository at this point in the history
Fix EVSEType using evseId if connectorId is null
  • Loading branch information
pbourseau authored Mar 20, 2024
2 parents 51ab065 + 9f36f2e commit ba3e898
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ abstract class CommonMapper {
@Named("convertEVSEType")
fun convertEVSEType(evse: EVSEType?): Int =
if (evse != null) {
evse.connectorId!!
evse.connectorId ?: evse.id
} else {
throw IllegalArgumentException("Argument evse is required in OCPP 1.6 to start a transaction")
}
Expand Down

0 comments on commit ba3e898

Please sign in to comment.