diff --git a/pubnub/lib/src/subscribe/envelope.dart b/pubnub/lib/src/subscribe/envelope.dart index a21f1523..e3d88cbe 100644 --- a/pubnub/lib/src/subscribe/envelope.dart +++ b/pubnub/lib/src/subscribe/envelope.dart @@ -122,7 +122,7 @@ class PresenceEvent { PresenceEvent.fromEnvelope(this.envelope) : action = PresenceActionExtension.fromString( - envelope.payload['action'] as String), + envelope.payload['action'] as String?), uuid = envelope.payload['uuid'] != null ? UUID(envelope.payload['uuid']) : null,