Skip to content

Debugger "String is null" error when hitting breakpoint #3265

Description

@shiffman

I'm reporting a series of errors regarding the debugger from some recent testing. This first one may be tied to the pane which is ultimately going away, but filing just in case.

When the debugger hits a breakpoint, I get the following error in the console:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: String is null
    at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2916)
    at processing.app.EditorStatus.paintComponent(EditorStatus.java:209)
    at javax.swing.JComponent.paint(JComponent.java:1056)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1047)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5219)

This simple example produces it:

float x = 0;

void setup() {
  size(200, 200);
}

void draw() {
  background(0);
  ellipse(x, 100, 50, 50);
  x = x + 5;
  if (x > width) {
    x = 0;    // ***** breakpoint here ****** // 
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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