-
-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When parsing a sunscription-state header with the value "active;expires=899" using the parseHeader function a runtime exception is thrown in the grammar parser.
E/flutter (11218): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'int?'
E/flutter (11218): #0 GrammarParser._parse_subexp_params.<anonymous closure>
package:sip_ua/src/grammar_parser.dart:17101
E/flutter (11218): #1 GrammarParser._parse_subexp_params
package:sip_ua/src/grammar_parser.dart:17104
E/flutter (11218): #2 GrammarParser.parse_Subscription_State
package:sip_ua/src/grammar_parser.dart:22393
E/flutter (11218): #3 GrammarParser.parse
package:sip_ua/src/grammar_parser.dart:23411
E/flutter (11218): #4 Grammar.parse
package:sip_ua/src/grammar.dart:8
E/flutter (11218): #5 IncomingMessage.parseHeader
package:sip_ua/src/sip_message.dart:45
To Reproduce
Steps to reproduce the behavior:
- Call
dart Grammar.parse("active;expires=899", "Subscription_State");
Expected behavior
parseHeader would return a object with the active status and the expires value.
System Infomation()
Flutter SDK Version: sdk: ">=2.16.0 <3.0.0" flutter: ">=2.0.0"
Target OS and Version: Android Api:30
Host OS and Version: Windows 10 Pro 21H1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working