Skip to content

Commit 60c134e

Browse files
committed
Fix NPE on incoming DataTransferRequest
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.
1 parent 9e8f2c0 commit 60c134e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocpp-v1_6/src/main/java/eu/chargetime/ocpp/feature/profile/ClientCoreProfile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public ClientCoreProfile(ClientCoreEventHandler handler) {
6060
features.add(new ChangeAvailabilityFeature(this));
6161
features.add(new ChangeConfigurationFeature(this));
6262
features.add(new ClearCacheFeature(this));
63-
features.add(new DataTransferFeature(null));
63+
features.add(new DataTransferFeature(this));
6464
features.add(new GetConfigurationFeature(this));
6565
features.add(new HeartbeatFeature(null));
6666
features.add(new MeterValuesFeature(null));

0 commit comments

Comments
 (0)