From c278b39c8256d0351d8a5357110e5b4982fd6cc4 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Fri, 1 Nov 2013 12:30:17 +0000 Subject: [PATCH] Bugfix: fixed an issue that caused NPE to be raised when UnsupportedConstraint was allocated. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10861 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../blender/constraints/definitions/ConstraintDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinition.java b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinition.java index a57bea7ec..7c51c8204 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinition.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/constraints/definitions/ConstraintDefinition.java @@ -48,7 +48,7 @@ public abstract class ConstraintDefinition { } } this.blenderContext = blenderContext; - constraintHelper = blenderContext.getHelper(ConstraintHelper.class); + constraintHelper = (ConstraintHelper) (blenderContext == null ? null : blenderContext.getHelper(ConstraintHelper.class)); this.ownerOMA = ownerOMA; }