Community listing page, reviews may not be monitored by the author.
DamageSource Is Not Null Basic
No reviews yet
An attempt to solve DamageSource NPE (Only Covers Vanilla Mobs)
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
DamageSource Is Not Null Basic
Project structure
The DSNNULL project is now split into two parts:
DSNNULL Basic
The core module. Provides the shared guard logic, fallback handling, and baseline vanilla-oriented protection.
DSNNULL Plus
The extended module. Builds on Basic and adds extra compatibility coverage for supported third-party mods and modded entities.
This split was made because maintaining both the core system and all modded-entity coverage inside a single package became increasingly difficult. Separating them makes the project easier to maintain, expand, and debug.
Explanation on the DamageSource Null Pointer Exception
Vanilla Minecraft and mod loaders assume that DamageSource is never null.
However, some mods still trigger damage or death logic incorrectly and pass a null DamageSource, which can cause crashes such as:
LivingDeathEvent.getSource() is null
These crashes can interrupt gameplay and create issues that are hard to debug, as the stacktrace seldom includes the actual method that pass a null into damage handling pipeline. This mod provides a defensive layer to prevent such issue from causing crash, and it also catch the point where null is passed into the pipeline, so that the actual debugging could be easier.
Environment
- Forge - 1.20.1
- NeoForge - 1.21.1
Support
If you'd like to support my modding work, including maintenance, updates, and compatibility work, Patreon is available here:
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers