Skip to content

Commit d0b1aff

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 c5beaa2 commit d0b1aff

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
@@ -426,7 +426,7 @@ protocol_state(Msg = #mqtt_msg{props = Props0,
426426
undefined ->
427427
Props2;
428428
Ttl ->
429-
case maps:get(?ANN_TIMESTAMP, Anns) of
429+
case maps:get(?ANN_TIMESTAMP, Anns, undefined) of
430430
undefined ->
431431
Props2;
432432
Timestamp ->

0 commit comments

Comments
 (0)