Mod conflicts

Crash When Viewing Fluids: "potionContents" is null in WaterPotionStorage

What the log looks like

java\.lang\.NullPointerException: Cannot invoke "java\.util\.Optional\.map\(java\.util\.function\.Function\)" because "potionContents" is null
net\.fabricmc\.fabric\.impl\.transfer\.fluid\.WaterPotionStorage\.isWaterPotion\(WaterPotionStorage\.java:\d+\)

How to fix it

  1. Update Fabric API (`fabric-api`) in your `mods` folder to the latest available release for your Minecraft version, which patches the `WaterPotionStorage` null check.
  2. Update Roughly Enough Items (REI) and Architectury API to their latest matching versions as well.
  3. If you are using a mod that bundles an older copy of `fabric-transfer-api-v1`, update that mod so Fabric Loader selects the fixed Transfer API version.
LoadersFabric
SeverityStops the game
CategoryMod conflicts

Check your own log

Related errors