From 0f66b814b3538313aa0f390de3929bc87c96db27 Mon Sep 17 00:00:00 2001 From: Nebloksiam Date: Tue, 2 Oct 2018 21:22:05 +0200 Subject: [PATCH] Load animated cursor NPE Potential NPE when loading animated cursors (.ani) --- .../src/main/java/com/jme3/cursors/plugins/CursorLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java b/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java index ce82cbe17..037927ac6 100644 --- a/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java +++ b/jme3-desktop/src/main/java/com/jme3/cursors/plugins/CursorLoader.java @@ -699,7 +699,7 @@ public class CursorLoader implements AssetLoader { imgDelay = BufferUtils.createIntBuffer(numImages); } imgDelay.put(cid.imgDelay); - } else if (imgData != null) { + } else if (imgDelay != null) { imgDelay.put(cid.imgDelay); } xHotSpot = cid.xHotSpot;