Skip to content

Commit 767973b

Browse files
MQTT: avoid an exception
when an AMQP 0-9-1 publisher publishes a message that has expiration set. Stack trace was contributed in #12707 by @rdsilio.
1 parent 62a4c0a commit 767973b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_mqtt/src/mc_mqtt.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ protocol_state(Msg = #mqtt_msg{props = Props0,
432432
undefined ->
433433
Props2;
434434
Ttl ->
435-
case maps:get(?ANN_TIMESTAMP, Anns) of
435+
case maps:get(?ANN_TIMESTAMP, Anns, undefined) of
436436
undefined ->
437437
Props2;
438438
Timestamp ->

0 commit comments

Comments
 (0)