aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-08 05:32:14 +0200
committerSven Gothel <[email protected]>2011-05-08 05:32:14 +0200
commit2c5bdd6b2810d9fd19f358d92cf63e03cefeec2d (patch)
tree08f7e8be7414d0a99fa45381cb5b75251cbbe29d /src/jogl/classes/com/jogamp/graph
parenteefa76604706bcaa55a1a324cb4eef78dd7a030c (diff)
Graph/JOGL: Avoid NPE
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r--src/jogl/classes/com/jogamp/graph/geom/Outline.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/geom/Outline.java b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
index b0ad86fda..6c1557f7b 100644
--- a/src/jogl/classes/com/jogamp/graph/geom/Outline.java
+++ b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
@@ -154,7 +154,7 @@ public class Outline implements Cloneable, Comparable<Outline> {
*/
public final void setClosed(boolean closed) {
this.closed = closed;
- if(closed){
+ if( closed && !isEmpty() ) {
Vertex first = vertices.get(0);
Vertex last = getLastVertex();
if(!VectorUtil.checkEquality(first.getCoord(), last.getCoord())){