Skip to content

Commit

Permalink
Fix NPE on incoming DataTransferRequest
Browse files Browse the repository at this point in the history
DataTransferRequests can be both initiated by the charge point as well
as the central system.

Using the ClientCoreProfile, a received DataTransferRequest cannot be
handled because the owning profile is unset.

Fix this by setting the owning profile.
  • Loading branch information
TomMarkuske committed Sep 11, 2020
1 parent 9e8f2c0 commit 60c134e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public ClientCoreProfile(ClientCoreEventHandler handler) {
features.add(new ChangeAvailabilityFeature(this));
features.add(new ChangeConfigurationFeature(this));
features.add(new ClearCacheFeature(this));
features.add(new DataTransferFeature(null));
features.add(new DataTransferFeature(this));
features.add(new GetConfigurationFeature(this));
features.add(new HeartbeatFeature(null));
features.add(new MeterValuesFeature(null));
Expand Down

0 comments on commit 60c134e

Please sign in to comment.