NullPointer in org.newdawn.slick.geom.Line ctor

Create issue
Issue #44 new
Perry Fraser created an issue

Build 237

This line throws a NullPointerException:

graphics.draw(new Line(new float[]{0, 0}, new float[]{10, 10}));

This is because the start and end Vector2f have not been initialized.

Stack Trace:

    at org.newdawn.slick.geom.Line.set(
    at org.newdawn.slick.geom.Line.set(
    at org.newdawn.slick.geom.Line.<init>(
    at MyCircle.render(
    at MainClass.render(
    at org.newdawn.slick.GameContainer.updateAndRender(
    at org.newdawn.slick.AppGameContainer.gameLoop(
    at org.newdawn.slick.AppGameContainer.start(

Comments (0)

  1. Log in to comment