Skip to content

NullPointerException in SketchCode.getDocumentText() #4555

Description

@JJ-Atkinson

When I run tweak mode all is well. But when I try to run normal after running tweak mode, it throws this error:

Exception in thread "Thread-58" java.lang.NullPointerException
    at processing.app.SketchCode.getDocumentText(SketchCode.java:228)
    at processing.app.ui.Editor.prepareRun(Editor.java:2716)
    at processing.mode.java.JavaEditor.prepareRun(JavaEditor.java:1781)
    at processing.mode.java.JavaEditor$34.run(JavaEditor.java:1095)
    at java.lang.Thread.run(Thread.java:745)

I'm running processing 3.1.1 on windows 10.

Please note this only happens in sketches with multiple files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    highWe'd like to fix this as soon as possible

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions