Skip to content

Commit

Permalink
Merge pull request #15 from stijn1989/patch-1
Browse files Browse the repository at this point in the history
mqtt_client.dart: "Null check operator used on a null value" for authenticationManager in connect() method.
  • Loading branch information
shamblett committed Oct 7, 2021
2 parents ea003bd + 8aa13e5 commit 7d80ba0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/mqtt_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ class MqttClient {
connectionHandler.onAutoReconnect = onAutoReconnect;
publishingManager =
MqttPublishingManager(connectionHandler, clientEventBus);
authenticationManager ??= MqttAuthenticationManager();
authenticationManager!.connectionHandler = connectionHandler;
subscriptionsManager =
MqttSubscriptionManager(connectionHandler, clientEventBus);
Expand Down

0 comments on commit 7d80ba0

Please sign in to comment.