Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Overview
This mod addresses a specific NullPointerException (NPE) that occurs when Applied Energistics 2 (Import Bus) attempts to extract items from certain external inventories, most notably from the Sophisticated Backpacks mod on Fabric.
The Problem
Some inventories occasionally return a null iterator when queried for their contents. AE2 expects a valid list and immediately attempts to check for items, leading to an instant server crash when it encounters the null value.
The Solution
The mod implements a Redirect Mixin into StorageImportStrategy. It intercepts the internal item check and adds a "safety gate":
If the inventory returns null: The mod catches it and tells AE2 that the inventory is simply empty, allowing the server to continue ticking normally.
If the inventory is valid: It allows the process to continue without any interference.


