java.lang.NullPointerException

Troubleshoot the java.lang.NullPointerException error on your Minecraft server. Learn how to identify faulty plugins, mods, and configuration issues.

By AwakeNode Team Reviewed by harry Updated 15 June 2026

What is a NullPointerException?

A java.lang.NullPointerException (NPE) occurs when the Java Virtual Machine attempts to use an object reference that has not been initialized (i.e., it points to 'null'). In the context of a Minecraft server, this usually happens when a plugin or mod tries to access data that doesn't exist, leading to a server crash or a failure to load a specific feature.

Common Causes

  • Outdated Plugins/Mods: A plugin may be trying to call a method that was changed or removed in a newer version of Minecraft.
  • Corrupted Configuration Files: Incorrectly formatted YAML files can lead to variables failing to load, resulting in null values.
  • Incompatible Software: Running plugins designed for a different server software (e.g., using a Spigot plugin on a Fabric server).
  • Missing Dependencies: A plugin might be missing a required library or API to function correctly.

How to fix it

1. Identify the culprit via logs

Check your server logs (found in logs/latest.log) for the stack trace associated with the error. Look for the names of plugins or mods mentioned in the lines immediately following the NullPointerException error. This will usually point you directly to the faulty file.

2. Remove or update the faulty plugin

On AwakeNode: Use the Plugin Installer or File Manager in the control panel to remove or update the identified plugin. You can restart your server immediately after to verify the fix.

On other hosts: Use an SFTP client to navigate to your plugins or mods folder. Remove the identified file, restart your server, and check if the error persists.

3. Reset configuration files

If the error persists, the plugin's configuration file may be corrupted.

  • On AwakeNode: Use the File Manager to locate the plugin's folder, rename the config file (e.g., config.yml to config.yml.old), and restart the server to force the plugin to generate a fresh, default configuration.
  • On other hosts: Use SFTP to rename or delete the configuration file, then restart the server.

4. Contact Support

If the error occurs during server startup and prevents the server from booting entirely, and you cannot identify the cause, open a Support ticket. Our team can review your full crash report to pinpoint the exact source of the conflict.

Frequently asked questions

Related guides

Ready to host your Minecraft server?

Spin up a high-performance UK server in seconds - AMD Ryzen, NVMe, DDoS protection, and 24/7 support from £1/mo.