CurseForge · Minecraft mod
DamageSource Is Not Null Plus
An attempt to fix "NullPointerException: LivingDeathEvent.getSource() is null"
Quick answer
Which DamageSource Is Not Null Plus release should I use?
DamageSource Is Not Null Plus dsnnullplus-3.1.1-neoforge-1.21.1.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.
Where it goes
Is DamageSource Is Not Null Plus required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does DamageSource Is Not Null Plus dsnnullplus-3.1.1-neoforge-1.21.1.jar need?
dsnnullplus-3.1.1-neoforge-1.21.1.jar. Change the file and its required mods may change too.
Install DamageSource Is Not Null Basic first. We found matching files for this game-version and loader setup.
We only count dependency files that match this setup. A file for another loader does not fill the gap.
Before you install it
Add DamageSource Is Not Null Plus without breaking your instance.
Built for DamageSource Is Not Null Plus dsnnullplus-3.1.1-neoforge-1.21.1.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use dsnnullplus-3.1.1-neoforge-1.21.1.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
Install DamageSource Is Not Null Basic first. We found matching files for this game-version and loader setup.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside dsnnullplus-3.1.1-neoforge-1.21.1.jar. It opens that exact file at the source.
About this project
What does DamageSource Is Not Null Plus add?
DamageSource Is Not Null: Plus
DamageSource Is Not Null: Plus requires the core protection layer from DSNNULL Basic and expands coverage to many third-party modded entities and custom damage paths. If you are a normal player, server owner, or modpack author, this is the version you probably want.
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.
Debug tools
This mod includes debugging tools to help locate missing coverage and vulnerable entities.
/dsnnull debug testall
This command performs a heuristic scan across registered living entities and attempts to identify entities that are still vulnerable to null DamageSource.
If some entities fail the scan, please report it on the issue tracker and attach latest.log so coverage can be expanded in future updates.
About 3.0.0 and transformer-based coverage
Since version 3.0.0, DSNNULL Plus uses a transformer-based approach to expand coverage automatically across a much wider range of classes and damage paths.
This significantly improves automatic patch coverage, especially for modded entities that would otherwise require many manual compatibility mixins.
However, because this also increases how broadly the mod interacts with the runtime, it may introduce compatibility risks in very large or complex modpacks.
If you're experiencing a start up crash and removing DSNNULL Plus makes the crash disappear, please submit the full latest.log to the issue tracker so the case can be investigated.
This is especially helpful for identifying unexpected transformer interactions and improving future compatibility.
Limitation
DamageSource Is Not Null: Plus is a defensive mitigation mod, not a guaranteed universal fix.
Because of how modded Minecraft works, it cannot guarantee protection in every possible case.
Some mods may still:
- bypass guarded paths
- override or replace core damage logic
- crash before this mod can intercept the issue
- require case-specific compatibility support that has not yet been added
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:
Project description from CurseForge.
Pick your setup
DamageSource Is Not Null Plus by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.1
1 loader build1.20.1
2 loader builds1.19.2
1 loader build1.18.2
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
DamageSource Is Not Null Plus versions and loaders
dsnnullplus-3.1.1-neoforge-1.21.1.jar
20 Apr 2026
dsnnullplus-3.1.1-forge-1.20.1.jar
19 Apr 2026
dsnnullplus-3.1.0-forge-1.20.1.jar
19 Apr 2026
dsnnullplus-3.0.0-neoforge-1.21.1.jar
8 Apr 2026
dsnnullplus-3.0.0-forge-1.20.1.jar
8 Apr 2026
damagesourceisnotnull-2.5.0-forge-1.20.1-all.jar
5 Apr 2026
damagesourceisnotnull-2.4.0-neoforge-1.21.1.jar
29 Mar 2026
damagesourceisnotnull-2.4.0-forge-1.20.1-all.jar
29 Mar 2026
damagesourceisnotnull-2.3.0-forge-1.20.1-all.jar
17 Mar 2026
damagesourceisnotnull-2.2.0-forge-1.20.1.jar
13 Mar 2026
damagesourceisnotnull-2.1.0-forge-1.20.1.jar
7 Mar 2026
damagesourceisnotnull-2.0.0-forge-1.20.1.jar
5 Mar 2026
Looking for an older file? The official CurseForge project page is in Resources.