Graphics and driversCrash When Clicking 'Copy Info' in Chat After Shader Error (String.isEmpty is null)
What it looks like in the log
java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "$$0" is null
How to fix it
- Do not click the 'Copy Info' link in chat when a shader fails to load; instead, open your '.minecraft/logs/latest.log' file directly to read the actual shader stack trace.
- Switch to a different shader pack or disable shaders in Options -> Video Settings -> Shader Packs, especially if you are on macOS using a shader that requires OpenGL 4.3+ features (such as Photon).
- Update Iris Shaders and Sodium to the latest available versions for your Minecraft release so null shader error messages are handled safely.
- If you need detailed shader debugging output for a bug report, enable Iris debug mode in '.minecraft/config/iris.properties' and check 'latest.log' after reloading shaders.
| Loaders | Fabric, Quilt |
|---|
| Severity | Stops the game |
|---|
| Category | Graphics and drivers |
|---|
Check your own log