[1.14.4] Crash with Keybinds in the manual
BluSunrize opened this issue ยท 0 comments
Description of the issue:
Opening the manual on a page with a keybind causes a crash if that Keybind is unbound/has no localized name for its keycode?
Crashlog:
https://gist.github.com/TwistedGate/f696f7fc065aad7768db01546bd3eef7
Crucial stacktrace:
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(Unknown Source)
at blusunrize.immersiveengineering.common.util.Utils.toCamelCase(Utils.java:325)
at blusunrize.immersiveengineering.client.manual.IEManualInstance.formatText(IEManualInstance.java:101)
Solution:
Check that kb.getLocalizedName()
doesn't return null or an empty string. If so, just return the unformatted keycode.