Skip to content

Commit 9bcbad1

Browse files
Merge pull request #14214 from rabbitmq/mergify/bp/v4.1.x/pr-14211
Handle type state being undefined for very old queues (backport #14211)
2 parents d60a5df + 32632f9 commit 9bcbad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/amqqueue.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ set_policy_version(#amqqueue{} = Queue, PV) ->
470470
% type_state (new in v2)
471471

472472
-spec get_type_state(amqqueue()) -> map().
473-
get_type_state(#amqqueue{type_state = TState}) ->
473+
get_type_state(#amqqueue{type_state = TState}) when is_map(TState) ->
474474
TState;
475475
get_type_state(_) ->
476476
#{}.

0 commit comments

Comments
 (0)