Skip to content

nullPointer on close button with P3D and noLoop #5214

Description

@hype
void setup() {
 size(600,600,P3D);
 noLoop();
}

void draw() { 
}

OSX Sierra 10.12.6 / Processing 3.3.5

if you press the esc key = no problem
if you mouse click "x" close button =

java.lang.NullPointerException
	at processing.core.PApplet.dispose(PApplet.java:3706)
	at processing.core.PApplet.exit(PApplet.java:3653)
	at processing.opengl.PSurfaceJOGL$NEWTWindowListener.windowDestroyNotify(PSurfaceJOGL.java:911)
	at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4389)
	at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4317)
	at jogamp.newt.WindowImpl.windowDestroyNotify(WindowImpl.java:4677)

ONLY occurs when noLoop() is present
ONLY occurs in P3D

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe have very little time and would like some helpopengl

    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