diff options
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 24c7e9e1f..742f81f38 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -477,9 +477,21 @@ object RenderUtils { var offsetY = 0 // TODO remove toMutableList - for (line in list.toMutableList()) { - renderLine(line, offsetY) - offsetY += 10 + extraSpace + 2 + try { + for (line in list.toMutableList()) { + renderLine(line, offsetY) + offsetY += 10 + extraSpace + 2 + } + } catch (e: NullPointerException) { + println(" ") + for (innerList in list) { + println("new inner list:") + for (any in innerList) { + println("any: '$any'") + } + } + e.printStackTrace() + LorenzUtils.debug("NPE in renderStringsAndItems!") } } |