From 2e1c4e8c296a7dce6e3cf92203175fc1e6bd84de Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Thu, 8 Sep 2011 23:46:21 +0000 Subject: [PATCH] NPE check on AudioNode read git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8228 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/audio/AudioNode.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/audio/AudioNode.java b/engine/src/core/com/jme3/audio/AudioNode.java index 1c426b8a9..6562936bd 100644 --- a/engine/src/core/com/jme3/audio/AudioNode.java +++ b/engine/src/core/com/jme3/audio/AudioNode.java @@ -758,7 +758,8 @@ public class AudioNode extends Node { positional = ic.readBoolean("positional", false); - data = im.getAssetManager().loadAudio(key); + if (key != null) + data = im.getAssetManager().loadAudio(key); } @Override