File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
deps/rabbitmq_management_agent/src Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -579,12 +579,20 @@ format_channel_details(Any) -> Any.
579579
580580-spec format_consumer_arguments (proplists :proplist ()) -> proplists :proplist ().
581581format_consumer_arguments (Obj ) ->
582- case pget (arguments , Obj ) of
583- undefined -> Obj ;
584- #{} -> Obj ;
585- [] -> pset (arguments , #{}, Obj );
586- Args -> pset (arguments , amqp_table (Args ), Obj )
587- end .
582+ % % Make sure arguments is a map and not an empty list
583+ Obj1 = case pget (arguments , Obj ) of
584+ undefined -> Obj ;
585+ #{} -> Obj ;
586+ [] -> pset (arguments , #{}, Obj );
587+ Args -> pset (arguments , amqp_table (Args ), Obj )
588+ end ,
589+ % % Make sure channel_details is a map and not an empty list
590+ case pget (channel_details , Obj1 ) of
591+ undefined -> Obj1 ;
592+ #{} -> Obj1 ;
593+ [] -> pset (channel_details , #{}, Obj1 );
594+ _ -> Obj1
595+ end .
588596
589597
590598parse_bool (<<" true" >>) -> true ;
You can’t perform that action at this time.
0 commit comments