From 855676173a991ce806342f28008a402385727224 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Thu, 7 Jun 2012 22:04:50 +0000 Subject: [PATCH] Re fixed material contentEquals crash when technique is null...but better git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9459 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/material/Material.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/core/com/jme3/material/Material.java b/engine/src/core/com/jme3/material/Material.java index 6e241f37c..5a840eedc 100644 --- a/engine/src/core/com/jme3/material/Material.java +++ b/engine/src/core/com/jme3/material/Material.java @@ -252,8 +252,8 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { // E.g. if user chose custom technique for one material but // uses default technique for other material, the materials // are not equal. - String thisDefName = this.technique != null ? this.technique.getDef().getName() : ""; - String otherDefName = other.technique != null ? other.technique.getDef().getName() : ""; + String thisDefName = this.technique != null ? this.technique.getDef().getName() : "Default"; + String otherDefName = other.technique != null ? other.technique.getDef().getName() : "Default"; if (!thisDefName.equals(otherDefName)) { return false; }