diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-04 15:36:18 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-04 15:36:18 +0100 |
commit | b0a1287d1dfd416d65b6759dabe171df086abe78 (patch) | |
tree | 15104ecf756fbb977095b33e34b12aee4621dc7a /src/main/java/at | |
parent | 13b0a4397d671d360b3116a1b0f3654a82e57c5d (diff) | |
download | skyhanni-b0a1287d1dfd416d65b6759dabe171df086abe78.tar.gz skyhanni-b0a1287d1dfd416d65b6759dabe171df086abe78.tar.bz2 skyhanni-b0a1287d1dfd416d65b6759dabe171df086abe78.zip |
Fixed render utils problems
Diffstat (limited to 'src/main/java/at')
-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!") } } |