Fixed a NPE in MaterialDebugAppState when a Pass was declared in a filter but not instantiated.

experimental
Nehon 10 years ago
parent b0b62cb467
commit 56aabe3fac
  1. 2
      jme3-core/src/main/java/com/jme3/util/MaterialDebugAppState.java

@ -317,7 +317,7 @@ public class MaterialDebugAppState extends AbstractAppState {
if (field.getType().isInstance(p)) {
field.setAccessible(true);
p = (Filter.Pass) field.get(filter);
if (p.getPassMaterial() != null) {
if (p!= null && p.getPassMaterial() != null) {
Material mat = reloadMaterial(p.getPassMaterial());
if (mat == null) {
return;

Loading…
Cancel
Save