From 87562bfbaec1b1547daeb51cc496721204d87183 Mon Sep 17 00:00:00 2001 From: javasabr Date: Tue, 24 Jan 2017 06:43:39 +0300 Subject: [PATCH] fixed NPE. --- .../java/com/jme3/shadow/PointLightShadowRenderer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowRenderer.java index f9d45984e..407f72367 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowRenderer.java +++ b/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowRenderer.java @@ -229,7 +229,12 @@ public class PointLightShadowRenderer extends AbstractShadowRenderer { * @return */ @Override - protected boolean checkCulling(Camera viewCam) { + protected boolean checkCulling(Camera viewCam) { + + if (light == null) { + return false; + } + Camera cam = viewCam; if(frustumCam != null){ cam = frustumCam;