Fixed a NPE in MaterialDebugAppState when a Pass was declared in a filter but not instantiated.
This commit is contained in:
parent
b0b62cb467
commit
56aabe3fac
@ -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…
x
Reference in New Issue
Block a user