Skip to content

Fix NullPointerException in FreeLook onDeactivate - #6528

Merged
Wide-Cat merged 1 commit into
MeteorDevelopment:masterfrom
Eccys:fix-freelook-npe
Jul 22, 2026
Merged

Fix NullPointerException in FreeLook onDeactivate#6528
Wide-Cat merged 1 commit into
MeteorDevelopment:masterfrom
Eccys:fix-freelook-npe

Conversation

@Eccys

@Eccys Eccys commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

Fixes a crash when disconnecting or deactivating the FreeLook module while prePers was null.
The NPE occurred because the module wasn't fully checking if the saved perspective prePers existed before trying to instruct Minecraft to use it.

Related issues

N/A

How Has This Been Tested?

Tested locally by activating and deactivating the module, and logging into servers where it was being auto-deactivated.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@Wide-Cat
Wide-Cat merged commit 36a499a into MeteorDevelopment:master Jul 22, 2026
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.

2 participants