Skip to content

[WIP] Fix NPE in StatsAppState during app initialization#2614

Draft
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-npe-in-stats-app-state
Draft

[WIP] Fix NPE in StatsAppState during app initialization#2614
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-npe-in-stats-app-state

Conversation

Copy link

Copilot AI commented Feb 14, 2026

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>StatsAppState.setEnabled fires NPE if called in app init</issue_title>
<issue_description>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

 
```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StatsAppState.setEnabled fires NPE if called in app init

2 participants

Comments