aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-04 15:36:18 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-04 15:36:18 +0100
commitb0a1287d1dfd416d65b6759dabe171df086abe78 (patch)
tree15104ecf756fbb977095b33e34b12aee4621dc7a /src/main/java/at
parent13b0a4397d671d360b3116a1b0f3654a82e57c5d (diff)
downloadskyhanni-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.kt18
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!")
}
}