Skip to content

StatsAppState.setEnabled fires NPE if called in app init #2613

@riccardobl

Description

@riccardobl

Calling stateManager.getState(StatsAppState.class).setEnabled(false); in simpleInitApp causes this NPE

java.lang.NullPointerException: Cannot invoke "com.jme3.scene.Geometry.setCullHint(com.jme3.scene.Spatial$CullHint)" because "this.darkenFps" is null
	at com.jme3.app.StatsAppState.setEnabled(StatsAppState.java:228)
StatsAppState.java:228

 

Metadata

Metadata

Labels

bugSomething that is supposed to work, but doesn't. More severe than a "defect".

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions