Skip to content

Preferences not validating inputs #1388

@catilac

Description

@catilac

Most appropriate sub-area of Processing 4?

PDE

Processing version

4.5.x

Operating system

all of them

Bug description

When going into the advanced preferences section, if you enter invalid inputs, the application will crash.
In order to fix this, you have to delete

Here is an example:
editor.tabs.size=2/

I accidentally typed in a "/" and the program crashed. But deleting that entry from preferences.txt fixed it.

Steps to reproduce this

  1. Go to advanced settings

  2. Go to a text field input (like tab size) and enter non-numeric input

  3. This will create a parse error and crash the application

snippet

// Paste your code below :)

void setup() {

}

void draw() {

}

Additional context

No response

Would you like to work on the issue?

Yes, I’d like to help with this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions