From 8477fa781b210c847e0f2845d48cb46bc518569d Mon Sep 17 00:00:00 2001 From: MeFisto94 Date: Sun, 20 Mar 2016 20:25:39 +0100 Subject: [PATCH] Fixed another NPE when missing serialized waypoints and fixed having different names for write/read --- jme3-core/src/main/java/com/jme3/math/Spline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/math/Spline.java b/jme3-core/src/main/java/com/jme3/math/Spline.java index 8bf7bac5d..2220ea8b7 100644 --- a/jme3-core/src/main/java/com/jme3/math/Spline.java +++ b/jme3-core/src/main/java/com/jme3/math/Spline.java @@ -458,7 +458,7 @@ public class Spline implements Savable { public void read(JmeImporter im) throws IOException { InputCapsule in = im.getCapsule(this); - controlPoints = (ArrayList) in.readSavableArrayList("wayPoints", null); + controlPoints = (ArrayList) in.readSavableArrayList("controlPoints", new ArrayList()); /* Empty List as default, prevents null pointers */ float list[] = in.readFloatArray("segmentsLength", null); if (list != null) { segmentsLength = new ArrayList();