Burp Suite User Forum

Login to post

ToolType.valueOf No enum Constant

| Last updated: May 24, 2023 01:16PM UTC

Hi, I get the following error when trying to use the valueOf() method of ToolType: No enum constant burp.api.montoya.core.ToolType.Scanner With the following code: ToolType.valueOf("Scanner"); I get the same error for any other Enum value of ToolType. Am I using this correctly or is this a bug? Thank you

Hannah, PortSwigger Agent | Last updated: May 24, 2023 03:22PM UTC

Hi It looks like ToolType.valueOf() is case-sensitive. If you provide it with "SCANNER" instead of "Scanner", you should find that it works as intended. We'll look into changing this behavior, to make this case-insensitive.

| Last updated: May 24, 2023 03:50PM UTC

Thank you for your help!

You need to Log in to post a reply. Or register here, for free.